From 5b5a0438682ecb69bbc8d7cb9904ad4b049033a3 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 22 Jan 2023 12:45:03 +0100 Subject: Implement gemini atom feed --- src/gmi/tpl/feed.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/gmi/tpl/feed.xml (limited to 'src/gmi/tpl/feed.xml') diff --git a/src/gmi/tpl/feed.xml b/src/gmi/tpl/feed.xml new file mode 100644 index 0000000..497fb11 --- /dev/null +++ b/src/gmi/tpl/feed.xml @@ -0,0 +1,28 @@ +{{ $getPostsRes := .GetPosts 0 15 -}} +{{ $posts := $getPostsRes.Posts -}} + + + mediocregopher's lil web corner + {{ BlogURLAbs "/" }} + {{ if gt (len $posts) 0 -}} + {{ (index $posts 0).PublishedAt.Format "2006-01-02T15:04:05Z07:00" }} + {{ end -}} + + + mediocregopher + + {{ range $posts -}} + + {{ .Title }} + {{ .PublishedAt.Format "2006-01-02T15:04:05Z07:00" }} + {{ PostURLAbs .ID }} + + {{ if .Description -}} + {{ .Description }} + {{ end -}} + + mediocregopher + + + {{ end -}} + -- cgit v1.2.3