1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

Media feed: fix relative url

This commit is contained in:
Rohan Kumar 2022-08-01 21:22:06 -07:00
parent c7cf0509a6
commit fc8eb8d7a6
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -78,7 +78,7 @@
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
{{ with .Params.image -}}
{{- $image := resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}}
<media:thumbnail url="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
<media:thumbnail url="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
{{- end }}
</entry>
{{- end -}}