From 80626f59e561b234757ed85c2dbb7727c8964c06 Mon Sep 17 00:00:00 2001 From: Nuno Sempere Date: Wed, 16 Aug 2023 19:51:49 +0000 Subject: [PATCH] actually, for extremely large posts, just present the first 1k lines. --- apps/blagh/rss20.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/blagh/rss20.tpl b/apps/blagh/rss20.tpl index d335385..9c6b88b 100755 --- a/apps/blagh/rss20.tpl +++ b/apps/blagh/rss20.tpl @@ -10,8 +10,7 @@ fn statpost { by=`{ls -m $f | sed 's/^\[//g; s/].*$//g' >[2]/dev/null} extracted_on=`{echo $relative_uri | sed 's|/blog/||g' | head -c 10 } published_on=`{ /bin/date -R -D '%Y/%m/%d' -d $extracted_on } - # ifs=() {summary=`{ cat $f/index.md |strip_title_from_md_file | head -n 9 | ifs=$difs {$formatter | escape_html} }} - 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 1000 | ifs=$difs {$formatter | escape_html} }} } %}