about summary refs log tree commit diff stats
path: root/tmpl.feed.xml
blob: db40258300b9989f5b7a0be5cae2abcff6393ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>acdw.casa</title>
  <subtitle>mi casa es su casa</subtitle>
  <link href="https://acdw.casa" rel="self" />
  <link href="https://acdw.casa" />
  <id>acdw.casa</id>
  <generator uri="https://git.acdw.net/hat-trick.git/" version="infinite">hat-trick</generator>
  <rights>Copyright (C) 2022 CC-BY-SA Case Duckworth</rights>
  <updated>$(date -u +%FT%TZ)</updated>

  $(sort -r .tmp/index-list | while read line; do
  entry_date="$(echo "$line" | sed 's/.*<li><!-- \(.*\) -->.*/\1/')"
  entry_title="$(echo "$line" | sed 's#.*<a href=".*">\(.*\)</a>.*#\1#')"
  entry_html="$(echo "$line" | sed 's#.*<a href="\(.*\)">.*#\1#')"
  entry_url="https://acdw.casa/$entry_html"
  cat <<END_OF_ENTRY

  <entry>
    <id>$entry_url</id>
    <link rel="alternate" type="text/html" href="$entry_url" />
    <title>$entry_title</title>
    <updated>$entry_date</updated>
    <author><name>Case Duckworth</name></author>
    <content type="html"><![CDATA[$(sed 1d "${entry_html%ml}.bod.txt")]]></content>
  </entry>
END_OF_ENTRY
done)
</feed>