Commit 3cf6b688 authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Make images use permalinks not relpermalinks

So images will show in RSS feeds
parent 3e782c24
......@@ -29,20 +29,20 @@
{{ with .Get "sizes" }}sizes='{{.}}'{{ else }}sizes="(min-width: 35em) 1200px, 100vw"{{ end }}
srcset='
{{ if ge $src.Width "500" }}
{{ with $tiny.RelPermalink }}{{.}} 500w{{ end }}
{{ with $tiny.Permalink }}{{.}} 500w{{ end }}
{{ end }}
{{ if ge $src.Width "800" }}
{{ with $small.RelPermalink }}, {{.}} 800w{{ end }}
{{ with $small.Permalink }}, {{.}} 800w{{ end }}
{{ end }}
{{ if ge $src.Width "1200" }}
{{ with $medium.RelPermalink }}, {{.}} 1200w{{ end }}
{{ with $medium.Permalink }}, {{.}} 1200w{{ end }}
{{ end }}
{{ if ge $src.Width "1500" }}
{{ with $large.RelPermalink }}, {{.}} 1500w {{ end }}
{{ with $large.Permalink }}, {{.}} 1500w {{ end }}
{{ end }}'
{{ if .Get $medium }}
src="{{ $medium.RelPermalink }}"
src="{{ $medium.Permalink }}"
{{ else }}
src="{{ $src.RelPermalink }}"
src="{{ $src.Permalink }}"
{{ end }}
{{ with .Get "alt" }}alt='{{.}}'{{ end }}>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment