mirror of https://github.com/jpanther/congo.git
do not upscale images in picture shortcode
parent
6f0d70ee36
commit
b592a81d46
|
@ -54,9 +54,13 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
srcset="
|
srcset="
|
||||||
{{- (.Resize "330x webp").RelPermalink }} 330w,
|
{{- (.Resize "330x webp").RelPermalink }} 330w,
|
||||||
{{- (.Resize "660x webp").RelPermalink }} 660w,
|
{{- (.Resize "660x webp").RelPermalink }} 660w
|
||||||
{{- (.Resize "1024x webp").RelPermalink }} 1024w,
|
{{ if gt .Width 1024 }}
|
||||||
{{- (.Resize "1320x webp").RelPermalink }} 2x"
|
,{{ (.Resize "1024x webp").RelPermalink }} 1024w
|
||||||
|
{{ end }}
|
||||||
|
{{ if gt .Width 1320 }}
|
||||||
|
,{{ (.Resize "1320x webp").RelPermalink }} 2x
|
||||||
|
{{ end }}"
|
||||||
src="{{ (.Resize "660x webp").RelPermalink }}"
|
src="{{ (.Resize "660x webp").RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
type="image/webp"
|
type="image/webp"
|
||||||
|
@ -74,9 +78,13 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
srcset="
|
srcset="
|
||||||
{{- (.Resize "330x").RelPermalink }} 330w,
|
{{- (.Resize "330x").RelPermalink }} 330w,
|
||||||
{{- (.Resize "660x").RelPermalink }} 660w,
|
{{- (.Resize "660x").RelPermalink }} 660w
|
||||||
{{- (.Resize "1024x").RelPermalink }} 1024w,
|
{{ if gt .Width 1024 }}
|
||||||
{{- (.Resize "1320x").RelPermalink }} 2x"
|
,{{ (.Resize "1024x").RelPermalink }} 1024w
|
||||||
|
{{ end }}
|
||||||
|
{{ if gt .Width 1320 }}
|
||||||
|
,{{ (.Resize "1320x").RelPermalink }} 2x
|
||||||
|
{{ end }}"
|
||||||
src="{{ (.Resize "660x").RelPermalink }}"
|
src="{{ (.Resize "660x").RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue