From 319051e1264836641250e9c48dfbb12088efb950 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sun, 3 Dec 2023 21:53:29 -0800 Subject: [PATCH] Add simple list extensions to atom feed I use this to instruct feed readers on how to sort items. See --- layouts/_default/list.atom.xml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 894167c..4444411 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -16,16 +16,23 @@ + xmlns:webfeeds="http://webfeeds.org/rss/1.0" + xml:lang="{{ .Site.LanguageCode }}"> + list + + + {{ $title }} on {{ .Site.Title }} {{- if .Params.Description -}} @@ -79,7 +86,8 @@ {{- end -}} {{- $type := "article" -}} - {{- if eq .Section "notes" -}}{{ /* TODO: add bookmark type and convert bookmarks to their own post types. */ -}} + {{- /* TODO: add bookmark type and convert bookmarks to their own post types. */ -}} + {{- if eq .Section "notes" -}} {{- $type = "note" -}} {{- end -}} http://activitystrea.ms/schema/1.0/{{ $type }} @@ -99,8 +107,11 @@ {{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | replaceRE `` "" | safeHTML -}} - {{- /* TODO: add application/atom+xml version of comments. */ }} - + {{- /* TODO: add application/atom+xml version of comments. */ -}} + {{ .Page.Scratch.Get "webmentionCount" }} {{ end -}}