From 28bb70308b007946e5c900a6b1a56034b5b3e35f Mon Sep 17 00:00:00 2001 From: Stanley Lieber Date: Tue, 1 Sep 2020 20:39:10 -0400 Subject: [PATCH] apps/blagh/atom.tpl: fix (thanks devine, khm) --- apps/blagh/atom.tpl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/blagh/atom.tpl b/apps/blagh/atom.tpl index 97c665f..410da85 100644 --- a/apps/blagh/atom.tpl +++ b/apps/blagh/atom.tpl @@ -8,7 +8,8 @@ fn statpost { post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/' title=`{read $f/index.md} 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} } } + #ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } } + summary=`{cat $f/index.md | strip_title_from_md_file | $formatter | escape_html } } # rfc3339 date when feed was last updated. fupdated = `{ndate -a `{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}'}}} @@ -42,9 +43,9 @@ fupdated = `{ndate -a `{date `{mtime `{ls $blagh_root$blagh_dirs/[0-9][0-9][0-9] % # -
- -
+ + %($summary%) + % # rfc3339 date when entry was last updated. % eupdated=`{ndate -a `{date `{mtime $f | awk '{print $1}'}}}