From 4b7497b96faf6f79800fa88a927b750a84aa3970 Mon Sep 17 00:00:00 2001 From: Maciej Ziaja Date: Sat, 22 Feb 2020 11:35:35 +0100 Subject: [PATCH] Draft html templates generation --- ssb | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/ssb b/ssb index 874e726..35351f7 100755 --- a/ssb +++ b/ssb @@ -16,7 +16,7 @@ function parse_optargs d) DISABLE_POSTS=true;; g) - GENERATE_TEMPLATE=true;; + gen_template;; h) usage;; r) @@ -45,5 +45,47 @@ function set_default_args POSTS_DIR=./posts } +function echo_header_template +{ + echo \ +' + + + + Title + + + + + + +
+ +
+' +} + + +function echo_footer_template +{ + echo \ +' + +' +} + + +function gen_template +{ + echo_header_template > ./header.html + echo_footer_template > ./footer.html +} parse_optargs $@