werc-1.5.0-tweaks

Tweaks for the werc website builder created by the mad architect Uriel
Log | Files | Refs | README

commit 63180147babc2228334b177374f78d3f18b0732c
parent 318e3e227f61765d1f49dc192796bec4d79642c8
Author: Nuno Sempere <nuno.semperelh@protonmail.com>
Date:   Wed,  6 Jul 2022 17:06:39 +0000

tweak: minor blog tweak

I was trying to add a "..." to cropped blogposts, but failed

Diffstat:
Mapps/blagh/app.rc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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