update
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<nav>
|
||||
<h2>ODOO Community Success Stories sponsored by</h2>
|
||||
|
||||
<a
|
||||
href="http://ODOO4projects.com"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<div class="image-container">
|
||||
{{ $src := .src }} {{ $alt := .Text | default "image" }} {{ $title := .Title }}
|
||||
{{ $isRemote := strings.HasPrefix $src "http" }} {{ if $isRemote }} {{ with
|
||||
resources.GetRemote $src }} {{ if eq .MediaType.SubType "svg" }}
|
||||
@@ -13,7 +14,7 @@ resources.GetRemote $src }} {{ if eq .MediaType.SubType "svg" }}
|
||||
}}
|
||||
loading="lazy"
|
||||
/>
|
||||
{{ else }} {{ $webp := .Resize "300x300 webp" | fingerprint }}
|
||||
{{ else }} {{ $webp := .Fit "300x300 webp" | fingerprint }}
|
||||
<img
|
||||
src="{{ $webp.RelPermalink }}"
|
||||
alt="{{ $alt }}"
|
||||
@@ -40,7 +41,7 @@ resources.GetRemote $src }} {{ if eq .MediaType.SubType "svg" }}
|
||||
}}
|
||||
loading="lazy"
|
||||
/>
|
||||
{{ else }} {{ $resized := .Resize "300x300 webp" }}
|
||||
{{ else }} {{ $resized := .Fit "300x300 webp" }}
|
||||
<img
|
||||
src="{{ $resized.RelPermalink }}"
|
||||
alt="{{ $alt }}"
|
||||
@@ -54,3 +55,4 @@ resources.GetRemote $src }} {{ if eq .MediaType.SubType "svg" }}
|
||||
loading="lazy"
|
||||
/>
|
||||
{{ end }} {{ end }} {{ end }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user