You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
513 B
21 lines
513 B
<img class="{{ .class }}"
|
|
{{ with .image }}
|
|
srcset="
|
|
{{- with (.Resize "600x q40") -}}
|
|
{{ printf "%s %dw," .RelPermalink .Width }}
|
|
{{- end -}}
|
|
|
|
{{- with (.Resize "1200x q65") -}}
|
|
{{ printf "%s %dw" .RelPermalink .Width }}
|
|
{{- end -}}"
|
|
|
|
sizes="
|
|
{{- with (.Resize "600x q40") -}}
|
|
{{- printf "(max-width: 700px) %dpx," .Width -}}
|
|
{{- end -}}
|
|
800px"
|
|
|
|
src="{{ (.Resize "1200x q65").RelPermalink }}"
|
|
{{ end }}
|
|
alt="{{ .alt }}"
|
|
>
|
|
|