From 63180147babc2228334b177374f78d3f18b0732c Mon Sep 17 00:00:00 2001 From: Nuno Sempere Date: Wed, 6 Jul 2022 17:06:39 +0000 Subject: [PATCH] tweak: minor blog tweak I was trying to add a "..." to cropped blogposts, but failed --- apps/blagh/app.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc index d0efe42..e0dc493 100755 --- a/apps/blagh/app.rc +++ b/apps/blagh/app.rc @@ -86,8 +86,8 @@ fn blagh_body { sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' < $p/index.md # cat $p/index.md | sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' | sed -n '/^.\{15\}/p' | echo echo # Needed extra \n so markdown doesn't mess up the formatting, probably can be done in sed. - echo # - } | head -n 9 | $formatter | sed 's/h[2-9]/i/g'| sed 's/h1/h3/g' + echo # + } | head -n 9 | $formatter | sed 's/h[2-9]/i/g'| sed 's/h1/h3/g' # HTML posts for(p in `{get_post_list $blagh_root^$blagh_dirs}) { cat < $p/index.html