mirror of https://github.com/jpanther/congo.git
More images
parent
30d506af0f
commit
22e1f1727e
|
@ -22,6 +22,8 @@
|
||||||
{{- (.Fill "160x120 smart").RelPermalink }}
|
{{- (.Fill "160x120 smart").RelPermalink }}
|
||||||
160w, {{- (.Fill "320x240 smart").RelPermalink }} 2x"
|
160w, {{- (.Fill "320x240 smart").RelPermalink }} 2x"
|
||||||
src="{{ (.Fill "160x120 smart").RelPermalink }}"
|
src="{{ (.Fill "160x120 smart").RelPermalink }}"
|
||||||
|
width="160"
|
||||||
|
height="120"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $.Site.Params.enableImageLazyLoading | default true }}
|
{{ if $.Site.Params.enableImageLazyLoading | default true }}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
|
|
@ -27,6 +27,8 @@
|
||||||
{{ if eq .MediaType.SubType "svg" }}
|
{{ if eq .MediaType.SubType "svg" }}
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
width="{{ .Width }}"
|
||||||
|
height="{{ .Height }}"
|
||||||
{{ if lt .Width 660 }}
|
{{ if lt .Width 660 }}
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
Loading…
Reference in New Issue