sbs

A Simple Blogging System.
git clone https://git.sr.ht/~jbauer/sbs
Log | Files | Refs | README | LICENSE

commit 24425d7e98c554a064fbae73a5881b6618c48487
parent 9fa7c63b3ae42202d84927d51c2743a1f52c95e7
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Tue, 15 Feb 2022 01:11:51 -0500

Add command to make new page in addition to new post

Diffstat:
Msbs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/sbs b/sbs @@ -22,6 +22,10 @@ fi # Create a new page or a new site if [ "$1" = "new" ]; then if [ "$2" = "page" ]; then + printf "Title: \nSummary: \n\n" > "content/$3" + printf "# [%%title]\n\n" >> "content/$3" + printf "Created: content/%s\n" "$3" + elif [ "$2" = "post" ]; then printf "Title: \nAuthor: \nDate: \nSummary: \n\n" > "content/$3" printf "# [%%title]\n\n" >> "content/$3" printf "**Author:** [%%author] | **Published:** [%%date]\n\n" >> "content/$3"