главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/bb.sh
diff options
context:
space:
mode:
authorCarlos Fenollosa <carlos.fenollosa@gmail.com>2017-01-03 17:10:12 +0100
committerGitHub <noreply@github.com>2017-01-03 17:10:12 +0100
commit025cf7922c3c53669e54aa8481c506e3529ba04a (patch)
tree23e4d368afb01fd3cbfeaf81125fa9662de090f5 /bb.sh
parent9f66ad0c5b1767f578fb128f6d7a600587f496a8 (diff)
parent272b1b6ab7820051304076ff3acda6e48f96ad0a (diff)
Merge pull request #125 from thalios1973/feat/body-end-file
Added ability to include custom code just before the </body> tag.
Diffstat (limited to 'bb.sh')
-rwxr-xr-xbb.sh4
1 files changed, 4 insertions, 0 deletions
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 <body> tag
# and before the actual blog content
body_begin_file=""
+ # extra content to add just before we cloese <body tag (just before
+ # </body>)
+ 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 '</div></div>' # divbody and divbodyholder
disqus_footer
+ [[ -n $body_end_file ]] && cat "$body_end_file"
echo '</body></html>'
} > "$filename"
}