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
493 B
21 lines
493 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="(max-width: 900px) 600px, (min-width: 901px) 1200px"
|
|
|
|
src="
|
|
{{- with (.Resize "600x q40") -}}
|
|
{{ .RelPermalink }}
|
|
{{- end -}}"
|
|
|
|
alt="{{ .Params.alt }}"
|
|
{{- end -}}
|
|
>
|
|
|