lb

A fully-featured RSS and blog site generator in less than 100 lines of shell script
Log | Files | Refs | README | LICENSE

commit 64e9c95b62316ec3e99f5df34b677599f7b012cf
parent 8f948e48d9c4907a6cd28198770fcfcfdbc03bab
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat,  1 Jun 2019 13:29:47 -0400

Merge branch 'master' of github.com:LukeSmithxyz/lb

Diffstat:
Mlb | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lb b/lb @@ -8,7 +8,7 @@ indexfile="blogindex.html" rssfile="rss.xml" [ -z "$EDITOR" ] && EDITOR="vim" -[ ! -d blog/.drafts ] && +[ ! -d "$webdir/blog/.drafts" ] && read -erp "Initialize blog in $webdir?" ask && if [ "$ask" = "y" ]; then printf "Initializing blog system...\\n" @@ -57,7 +57,7 @@ confirm() { read -erp "Really $1 \"$base\"? (y/N) " choice && echo "$choice" | g delete() { \ sed -i "/<item/{:a;N;/<\\/item>/!ba};/#$base.html<\\/guid/d" $rssfile - sed -i "/<div/{:a;N;/<\\/div>/!ba};/id='$base'/d" $blogfile + sed -i "/<div class='entry'>/{:a;N;/<\\/div>/!ba};/id='$base'/d" $blogfile sed -i "/<li>.*<a href=\"blog\\/$base.html\">/d" $indexfile rm "$webdir/blog/$basefile" 2>/dev/null && printf "Old blog entry removed.\\n" ;}