re-optimize images again

This commit is contained in:
2025-04-03 20:03:23 +00:00
parent 57f7c430a2
commit 48f68c53b7

View File

@@ -33,9 +33,6 @@ care about is 700*4=2800px.
<picture> <picture>
<source type="image/webp" <source type="image/webp"
sizes="(max-width: 600px) 350px, {{ $width }}" sizes="(max-width: 600px) 350px, {{ $width }}"
{{- if eq $hint "graph" }}
srcset='{{ $wmax.RelPermalink}} {{ $wmax.Width}}w'
{{- else }}
srcset=' srcset='
{{- if ge $src.Width "350" }} {{- if ge $src.Width "350" }}
{{ with $w350.RelPermalink }}{{.}} 350w{{ end }} {{ with $w350.RelPermalink }}{{.}} 350w{{ end }}
@@ -49,13 +46,9 @@ care about is 700*4=2800px.
{{- if ge $src.Width "2800" }} {{- if ge $src.Width "2800" }}
{{ with $w2800.RelPermalink }}, {{.}} 2800w{{ end }} {{ with $w2800.RelPermalink }}, {{.}} 2800w{{ end }}
{{- end }}' {{- end }}'
{{- end }}
/> />
<img <img
sizes="(max-width: 600px) 350px, 700px" sizes="(max-width: 600px) 350px, 700px"
{{- if eq $hint "graph" }}
srcset='{{ $jmax.RelPermalink}} {{ $jmax.Width}}w'
{{- else }}
srcset=' srcset='
{{- if ge $src.Width "350" }} {{- if ge $src.Width "350" }}
{{ with $j350.RelPermalink }}{{.}} 350w{{ end }} {{ with $j350.RelPermalink }}{{.}} 350w{{ end }}
@@ -69,7 +62,6 @@ care about is 700*4=2800px.
{{- if ge $src.Width "2800" }} {{- if ge $src.Width "2800" }}
{{ with $j2800.RelPermalink }}, {{.}} 2800w{{ end }} {{ with $j2800.RelPermalink }}, {{.}} 2800w{{ end }}
{{- end }}' {{- end }}'
{{- end }}
src="{{ $j700.RelPermalink }}" src="{{ $j700.RelPermalink }}"
{{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" }}{{ end }}"{{ end }} {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" }}{{ end }}"{{ end }}
/> />