experiment with a fully <pre>-based look
[~bandali/bndl.org] / meta_feed_atom.m4
CommitLineData
206884ba 1include(meta_defs.m4)dnl
505a9419
AB
2<?xml version="1.0" encoding="UTF-8"?>
3<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
066f7565 4<title>Amin Bandali's Personal Site</title>
a98c50cd 5<subtitle>Notes and blog posts by Amin Bandali</subtitle>
dcc71b98 6<id>tag:bndl.org,2020:notes.atom</id>
3fdab855 7<link href="https://bndl.org/notes.atom" rel="self" type="application/atom+xml"/>
dcc71b98 8<link href="https://bndl.org/notes.rss" rel="alternate" type="application/rss+xml" />
3fdab855 9<link href="https://bndl.org" rel="alternate" type="text/html"/>
066f7565
AB
10<updated>syscmd(date -Iseconds -u | tr -d \\n)</updated>
11define(__feed_atom)dnl
505a9419
AB
12define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
13 `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
14fordown(`__i',__latest,eval(__latest-10),`
c08732dd 15 syscmd(sed "s/\&/\&amp;/g;s/>/\&gt;/g;s/</\&lt;/g" _get(`notes', __i).m4 | m4 -D__feed_atom)')
505a9419 16</feed>