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