summaryrefslogtreecommitdiff
path: root/feed.xml.tmpl
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-07-11 12:08:14 -0600
committert <t@tjp.lol>2026-07-11 12:10:15 -0600
commit2ab0e23eca3c5cac82d948e506b3f1cb81bedd18 (patch)
tree46dc28dcea6265ece0f4763cdff372f84578e172 /feed.xml.tmpl
parent9faffbf6bc5083239d69a2daedac273e6d814bc3 (diff)
Migrate site pages to Weft templates and Markdown
Diffstat (limited to 'feed.xml.tmpl')
-rw-r--r--feed.xml.tmpl20
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>