%{ fn statpost { f = $1 post_uri = `{echo $f | sed 's,^'$sitedir',,'} #title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' } title=`{read $f/index.md} date=`{ndate -m} # rss 2.0 spec says pubDate should conform to rfc822 post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/' by=`{ls -m $f | sed 's/^\[//g; s/].*$//g' >[2]/dev/null} ifs=() {summary=`{ cat $f/index.md |strip_title_from_md_file| ifs=$difs {$formatter | escape_html} }} } %} <![CDATA[%($siteTitle%)]]> %($base_url^$req_path%) en-us %{ # uriel99+rss@gmail.com (Uriel) for(f in `{get_post_list $blagh_root$blagh_dirs}) { statpost $f # Hack to aproximate the last build date #(use the mdate from last posted item) # Commented out for now because maybe a wrong value is worse than no value #if(~ $#last_build_date 0) { #last_build_date=''^$"mdate'' #echo $last_build_date #} %} <![CDATA[%($title%)]]> %($post_uri%) %($post_uri%) %($date%) %($summary%) % }