From 272b1b6ab7820051304076ff3acda6e48f96ad0a Mon Sep 17 00:00:00 2001 From: Mike Gauthier Date: Thu, 29 Dec 2016 23:36:01 -0500 Subject: [PATCH] Added ability to include custom code just before the tag. body_end_file global config variable added. --- bb.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bb.sh b/bb.sh index cd3705b..03eeded 100755 --- a/bb.sh +++ b/bb.sh @@ -95,6 +95,9 @@ global_variables() { # extra content to add just after we open the tag # and before the actual blog content body_begin_file="" + # extra content to add just before we cloese ) + body_end_file="" # CSS files to include on every page, f.ex. css_include=('main.css' 'blog.css') # leave empty to use generated css_include=() @@ -480,6 +483,7 @@ create_html_page() { # close divs echo '' # divbody and divbodyholder disqus_footer + [[ -n $body_end_file ]] && cat "$body_end_file" echo '' } > "$filename" }