From 45293c9c21fc600caf4570dfaf49b45c2b813df3 Mon Sep 17 00:00:00 2001 From: gutmet Date: Wed, 23 Nov 2022 21:30:57 +0100 Subject: [PATCH] rss template --- rss.template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 rss.template diff --git a/rss.template b/rss.template new file mode 100644 index 0000000..3da5438 --- /dev/null +++ b/rss.template @@ -0,0 +1,29 @@ + + + +Mastodon +https://mastodon.social +Mastodon + +{{range $index, $status := .}} + +{{$status.Account.Username}} ({{$status.ID}}) +
+{{replaceAll $status.Content "\n" "
"}} +{{range $idxMedia, $media := $status.MediaAttachments}} +
{{$media.Description}} +{{end}} +]]>
+ +{{$status.URL}} +{{$status.URL}} +{{$status.CreatedAt.Format "Mon, 02 Jan 2006 15:04:05 -0700"}} +
+{{- end}} + +
+
+