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 $@