commit c0aaa9c8857de564a6c9d2c8337302feb0b9474e parent 47a06c612afefe999547b75bdedb599b20f401ab Author: NunoSempere <nuno.sempere@protonmail.com> Date: Thu, 10 Mar 2022 14:46:29 +0000 tweak: Make summary not contain the whole body. Diffstat:
| M | apps/blagh/rss20.tpl | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/blagh/rss20.tpl b/apps/blagh/rss20.tpl @@ -7,7 +7,7 @@ fn statpost { title=`{read $f/index.md} 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} }} + ifs=() {summary=`{ cat $f/index.md |strip_title_from_md_file | head -n 9 | ifs=$difs {$formatter | escape_html} }} } %}