From 702750931ab8724054d48339936aa44f4918d8db Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sun, 26 Nov 2023 23:45:45 -0800 Subject: [PATCH] Add more metadata to the Atom feed - Add webfeeds.org metadata to improve presentation (icon, accentcolor) - Add RDF Creative Commons license link - Add fallback media thumbnail --- layouts/_default/list.atom.xml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index bbe694a..94fb800 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -10,6 +10,7 @@ {{- $period = "hourly" -}} {{- end -}} {{- $icon := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}} +{{- $image := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}} {{- $logo := resources.Get "/atom.svg" | resources.Fingerprint "md5" -}} + xmlns:thr="http://purl.org/syndication/thread/1.0" + xmlns:webfeeds="http://webfeeds.org/rss/1.0"> {{ $title }} on {{ .Site.Title }} {{- if .Params.Description -}} @@ -31,8 +33,11 @@ {{- .Site.Params.Description -}} {{- end -}} - {{ $icon.Permalink }}{{ $logo.Permalink }} + {{ $icon.Permalink }} + {{ $icon.Permalink }} + {{ $logo.Permalink }} + 191919 {{ $period }} 2 @@ -43,16 +48,20 @@ https://seirdy.one/ + {{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Permalink }} {{ range $pages -}} {{- if not .Params.Private -}} {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + + {{ .Permalink }} + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Site.Author.name }}https://seirdy.one/ CC-BY-SA 4.0 + {{- with .Params.replyURI -}} {{- end -}} @@ -66,9 +75,9 @@ http://activitystrea.ms/schema/1.0/{{ $type }} http://activitystrea.ms/schema/1.0/post {{- with .Params.image -}} - {{- $image := resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}} - + {{- $image = resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}} {{- end -}} +
{{- if .Params.replyURI -}}