Browse Source

do not bother computing width of images

master
Alexander Avery 3 months ago
parent
commit
4bd7e96182
  1. 11
      layouts/partials/image.html

11
layouts/partials/image.html

@ -9,13 +9,12 @@
{{ printf "%s %dw" .RelPermalink .Width }} {{ printf "%s %dw" .RelPermalink .Width }}
{{- end -}}" {{- end -}}"
sizes=" sizes="(max-width: 900px) 600px, (min-width: 901px) 1200px"
{{- with (.Resize "600x q40") -}}
{{- printf "(max-width: 700px) %dpx," .Width -}}
{{- end -}}
800px"
src="{{ (.Resize "1200x q65").RelPermalink }}" src="
{{- with (.Resize "600x q40") -}}
{{ .RelPermalink }}
{{- end -}}"
{{ end }} {{ end }}
alt="{{ .alt }}" alt="{{ .alt }}"
> >

Loading…
Cancel
Save