summaryrefslogtreecommitdiff
path: root/feed.xml.tmpl
blob: c95aa53be908e44d15c599a375874a6b96b83b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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>
    {{with .Sections}}<content type="html">{{xml (index . 0)}}</content>
    {{end}}
  </entry>{{end}}
</feed>