1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00

stop adding placeholder thumbnails to feeds

This commit is contained in:
Seirdy 2024-06-22 12:36:08 -04:00
parent 4205af9a80
commit 9847fadf95
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -96,9 +96,9 @@
<activity:object-type>http://activitystrea.ms/schema/1.0/{{ $type }}</activity:object-type>
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
{{- with .Params.image -}}
{{- $image := partial "cache-bust.html" (printf "/p/%s" . ) -}}
{{- $thumbnail := partial "cache-bust.html" (printf "/p/%s" . ) -}}
<media:thumbnail url="{{ $thumbnail.Permalink }}" width="{{ $thumbnail.Width }}" height="{{ $thumbnail.Height }}" />
{{- end -}}
<media:thumbnail url="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
{{ with .Description -}}
<summary type="text">{{ . }}</summary>
{{- end }}