diff --git a/layouts/partials/picture.html b/layouts/partials/picture.html index 752f84a8..9f15926e 100644 --- a/layouts/partials/picture.html +++ b/layouts/partials/picture.html @@ -81,32 +81,65 @@ type="image/webp" /> {{ end }} - {{ . }} + {{ if gt .Width 1320 }} + ,{{ (.Resize "1320x").RelPermalink }} 2x + {{ else }} + ,{{ .RelPermalink }} {{ .Width }}w + {{ end }}" + src="{{ (.Resize "660x").RelPermalink }}" + {{ end }} + > + {{ else if (eq $orientation 8) }} + {{ . }} + {{ end }} {{ end }} {{ end }} \ No newline at end of file