diff --git a/lib/feeds/atom.tpl b/lib/feeds/atom.tpl index 513350f..29c49f5 100644 --- a/lib/feeds/atom.tpl +++ b/lib/feeds/atom.tpl @@ -2,12 +2,13 @@ Content-Type: application/atom+xml - + %{ fn statpost { f = $1 updated = `{/bin/date --rfc-3339'=seconds' -r $f |sed 's/ /T/'} + # XXX $post_uri is broken produces output that includes full file path (eg., /gsoc/www/...) post_uri=$baseuri^`{cleanname `{echo $f | sed -e 's,^'$sitedir',,' -e 's/\.(md|tpl)$//g'}} title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' } date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}} @@ -15,7 +16,7 @@ fn statpost { stat=`{stat -c '%Y %U' $f} #mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable by=$stat(2) - ifs=() { summary=`{cat $f | crop_text 1024 | $formatter } } + ifs=() { summary=`{cat $f | crop_text 512 ... | $formatter } } } updated = `{/bin/date --rfc-3339'=seconds' |sed 's/ /T/'} %} @@ -39,17 +40,13 @@ updated = `{/bin/date --rfc-3339'=seconds' |sed 's/ /T/'} statpost $f %} - + %($post_uri%) %($title%) %($by%) -