diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc index 13c3e95..5686d7c 100755 --- a/apps/blagh/app.rc +++ b/apps/blagh/app.rc @@ -91,11 +91,16 @@ fn blagh_body { # XXX Not sure why this fixes issues with blog setup, probably bug in fltr_cache! for(p in `{get_post_list $blagh_root^$blagh_dirs}) { l=`{echo -n $p|sed 's!'$sitedir^'/?(.*)([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])(/[^/]+/)!\2 /\1\2\3!'} - sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' < $p/index.md + sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' < $p/index.md | head -n 10 + echo + echo '
' + # ⇒ + # ➡ + # https://www.smashingmagazine.com/2009/07/designing-read-more-and-continue-reading-links/ # 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' + } | head -n 12 | $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