sbs

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

commit ff2462db20b310a58f78f4e20f5a6fa10731b4fc
parent 24425d7e98c554a064fbae73a5881b6618c48487
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Tue, 15 Feb 2022 01:12:18 -0500

Fix format of printf strings

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

diff --git a/sbs b/sbs @@ -29,14 +29,14 @@ if [ "$1" = "new" ]; 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" - printf "Created: content/%s" "$3" + printf "Created: content/%s\n" "$3" elif [ "$2" = "site" ]; then mkdir "$3" "$3/content/" "$3/static/" "$3/templates/" touch "$3/static/style.css" # Create template config.ini file - printf "siteURL = https://example.com\n" > "$3/config.ini" + printf "siteURL = https://example.com/\n" > "$3/config.ini" printf "siteName = $3\n" >> "$3/config.ini" - printf "blogDir = blog\n" >> "$3/config.ini" + printf "blogDir = blog/\n" >> "$3/config.ini" printf "languageCode = en\n" >> "$3/config.ini" printf "buildOptions = -Thtml --html-no-skiphtml --html-no-escapehtml\n" >> "$3/config.ini" # Create template header.html file