commit 67142daff13204ffb02f0789712747f8988926a7
parent 5c73ec28412183ad314af392df2dceb333d73c03
Author: Jake Bauer <jbauer@paritybit.ca>
Date: Tue, 22 Feb 2022 16:21:49 -0500
Fix up new post and new page commands
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sbs b/sbs
@@ -18,14 +18,14 @@ new()
if [ "$2" = "page" ]; then
{ printf "Title: \nSummary: \n\n"
printf "# [%%title]\n\n"
- } > "content/$3"
- printf "Created: content/%s\n" "$3"
+ } > "$3"
+ printf "Created: %s\n" "$3"
elif [ "$2" = "post" ]; then
{ printf "Title: \nAuthor: \nDate: \nSummary: \n\n"
printf "# [%%title]\n\n"
printf "**Author:** [%%author] | **Published:** [%%date]\n\n"
- printf "Created: content/%s\n" "$3"
- } > "content/$3"
+ } > "$3"
+ printf "Created: %s\n" "$3"
elif [ "$2" = "site" ]; then
mkdir "$3" "$3/content/" "$3/static/" "$3/templates/"
touch "$3/static/style.css"