-include(meta_notes.m4)dnl
+include(meta_defs.m4)dnl
<?xml version="1.0" encoding="UTF-8" ?>
-<rss version="2.0">
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Amin Bandali's Personal Site</title>
<description>Notes and blog posts by Amin Bandali</description>
-<link>https://bandali.eu.org</link>
+<link>__d`'__p/</link>
<lastBuildDate>syscmd(date -uR | tr -d \\n)</lastBuildDate>
<pubDate>syscmd(date -uR | tr -d \\n)</pubDate>
<ttl>1800</ttl>
+<atom:link href="__d`'__p/notes.rss" rel="self" type="application/rss+xml" />
+<atom:link href="__d`'__p/notes.atom" rel="alternate" type="application/atom+xml" />
+<atom:link href="__d`'__p/" rel="alternate" type="text/html" />
define(__feed_rss)dnl
define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
`pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
fordown(`__i',__latest,eval(__latest-10),`
- syscmd(sed "s/\&/\&/g;s/>/\>/g;s/</\</g" _get(`notes', __i).m4 | m4 -D__feed_rss)')
+ syscmd(sed "s/\&/\&/g;s/>/\>/g;s/</\</g" _get(`notes', __i).m4 | m4 -D__feed_rss -D__d=__d -D__p=__p)')
</channel>
</rss>