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 }}"
|
|
>
|
|
|