sbs

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

commit aea5604a85d6e2de2d883c9c8860b3217a9b9e59
parent efe32d0f8add6e1e41e99a5683e5ab6c31de682e
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 14 Feb 2022 03:27:13 -0500

Update new page command

Diffstat:
Msbs | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sbs b/sbs @@ -5,14 +5,14 @@ # Copyright (C) 2022 Jake Bauer # See the README for usage instructions and LICENSE for license terms. -# TODO: Image optimization not using third party service? +# TODO: Creation of Atom feed from blog posts set -o errexit set -o nounset if [ "$1" = "new" ]; then - if [ "$2" = "post" ]; then - printf "Title: \nAuthor: \nDate: \nSummary: \n\n# [%%title]\n\n**Author:** [%%author] | **Published:** [%%date]\n\n" > "$3" + if [ "$2" = "page" ]; then + printf "Title: \nAuthor: \nDate: \nSummary: \n\n# [%%title]\n\n**Author:** [%%author] | **Published:** [%%date]\n\n" > "content/$3" elif [ "$2" = "site" ]; then mkdir -p "$3/content/" "$3/static/" "$3/templates/" touch "$3/static/style.css"