Strip title from rss/atom 'summary'(ie., body).

This used to look really ugly in most feed readers.
This commit is contained in:
Uriel 2009-06-13 15:59:43 +02:00
parent f01bfb63ec
commit b5800c33ef
3 changed files with 6 additions and 2 deletions

View file

@ -13,7 +13,7 @@ fn statpost {
#mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable
post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
by=$stat(2)
ifs=() {summary=`{ cat $f/index.md | ifs=$difs {$formatter | escape_html} }}
ifs=() {summary=`{ cat $f/index.md |strip_title_from_md_file| ifs=$difs {$formatter | escape_html} }}
}
%}