2009-01-25 08:52:19 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
%{
|
|
|
|
fn statpost {
|
2009-02-18 02:28:20 -07:00
|
|
|
f = $1
|
|
|
|
post_uri = `{echo $f | sed 's,^'$sitedir',,'}
|
2016-02-04 13:05:05 -07:00
|
|
|
title=`{read $f/index.md}
|
2009-02-20 16:15:08 -07:00
|
|
|
post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
|
2016-02-04 13:05:05 -07:00
|
|
|
by=`{ls -m $f | sed 's/^\[//g; s/].*$//g' >[2]/dev/null}
|
2009-06-13 07:59:43 -06:00
|
|
|
ifs=() {summary=`{ cat $f/index.md |strip_title_from_md_file| ifs=$difs {$formatter | escape_html} }}
|
2009-01-25 08:52:19 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
2009-02-18 02:28:20 -07:00
|
|
|
<channel>
|
|
|
|
<atom:link href="%($base_url^$req_path%)" rel="self" type="application/rss+xml" />
|
2016-02-04 13:05:05 -07:00
|
|
|
<title><![CDATA[%($siteTitle%)]]></title>
|
2009-02-18 02:28:20 -07:00
|
|
|
<link>%($base_url^$req_path%)</link>
|
2016-02-04 13:05:05 -07:00
|
|
|
<description><![CDATA[%($blogDesc%)]]></description>
|
2009-02-18 02:28:20 -07:00
|
|
|
<language>en-us</language>
|
2016-02-04 13:05:05 -07:00
|
|
|
<generator><![CDATA[Tom Duff's rc, and Kris Maglione's clever hackery]]></generator>
|
2009-01-25 08:52:19 -07:00
|
|
|
%{
|
2009-02-18 02:28:20 -07:00
|
|
|
# <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster>
|
2019-12-09 20:18:12 -07:00
|
|
|
# rfc2822 last time channel content changed.
|
2019-12-09 21:21:45 -07:00
|
|
|
lbd=`{ndate -m `{date `{mtime `{ls $blagh_root$blagh_dirs/[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/[0-9] | tail -1} | awk '{print $1}'}}}
|
2019-12-09 17:37:43 -07:00
|
|
|
echo '<lastBuildDate>'$"lbd'</lastBuildDate>'
|
|
|
|
for(f in `{get_post_list $blagh_root$blagh_dirs}){
|
2009-02-18 02:28:20 -07:00
|
|
|
statpost $f
|
2021-01-29 19:46:41 -07:00
|
|
|
# rfc2822 publication date for this post.
|
|
|
|
pubdate=`{ndate -m `{date `{mtime $f | awk '{print $1}'}}}
|
2009-01-25 08:52:19 -07:00
|
|
|
%}
|
2009-02-18 02:28:20 -07:00
|
|
|
<item>
|
2016-02-04 13:05:05 -07:00
|
|
|
<title><![CDATA[%($title%)]]></title>
|
|
|
|
<author><![CDATA[%($by%)@noreply.cat-v.org (%($by%))]]></author>
|
2009-02-18 02:28:20 -07:00
|
|
|
<link>%($post_uri%)</link>
|
|
|
|
<guid isPermaLink="true">%($post_uri%)</guid>
|
2019-12-09 17:37:43 -07:00
|
|
|
<pubDate>%($pubdate%)</pubDate>
|
2019-12-07 19:55:44 -07:00
|
|
|
<description> %($summary%) </description>
|
2009-02-18 02:28:20 -07:00
|
|
|
</item>
|
|
|
|
% }
|
|
|
|
</channel>
|
2009-01-25 08:52:19 -07:00
|
|
|
</rss>
|