move bandali.eu.org-specific bits of .htaccess to caffeine
[~bandali/bndl.org] / meta_feed_rss.m4
1 include(meta_notes.m4)dnl
2 <?xml version="1.0" encoding="UTF-8" ?>
3 <rss version="2.0">
4 <channel>
5 <title>Amin Bandali's Personal Site</title>
6 <description>Notes and blog posts by Amin Bandali</description>
7 <link>https://bandali.eu.org</link>
8 <lastBuildDate>syscmd(date -uR | tr -d \\n)</lastBuildDate>
9 <pubDate>syscmd(date -uR | tr -d \\n)</pubDate>
10 <ttl>1800</ttl>
11 define(__feed_rss)dnl
12 define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
13 `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
14 fordown(`__i',__latest,eval(__latest-10),`
15 syscmd(sed "s/\&/\&amp;/g;s/>/\&gt;/g;s/</\&lt;/g" _get(`notes', __i).m4 | m4 -D__feed_rss)')
16 </channel>
17 </rss>