diff options
Diffstat (limited to 'feed.xml.tmpl')
| -rw-r--r-- | feed.xml.tmpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/feed.xml.tmpl b/feed.xml.tmpl new file mode 100644 index 0000000..961ee41 --- /dev/null +++ b/feed.xml.tmpl @@ -0,0 +1,20 @@ +<feed xmlns="http://www.w3.org/2005/Atom"> + <title>tjp.lol</title> + <subtitle>Notes, code, and longer thoughts from an elder-millennial software engineer in Salt Lake City.</subtitle> + <link href="https://tjp.lol/feed.xml" rel="self"/> + <link href="https://tjp.lol/"/> + {{$posts := sortPages (index .Pages "weblog") "post_date"}}{{with slicePages $posts 0 1}}<updated>{{range .}}{{rfc3339 (index .Meta "post_date")}}{{end}}</updated>{{else}}<updated>2026-07-11T00:00:00Z</updated>{{end}} + <id>https://tjp.lol/</id> + <author> + <name>tjp</name> + <email>t@tjp.lol</email> + </author> + {{range $posts}}<entry> + <title>{{.Title}}</title> + <link href="{{.CanonicalURL}}"/> + <id>{{.CanonicalURL}}</id> + <published>{{rfc3339 (index .Meta "post_date")}}</published> + <updated>{{if index .Meta "updated"}}{{rfc3339 (index .Meta "updated")}}{{else}}{{rfc3339 (index .Meta "post_date")}}{{end}}</updated> + <content type="html">{{xml (joinSections .Sections)}}</content> + </entry>{{end}} +</feed> |
