Added ability to include custom code just before the </body> tag. body_end_file global config variable added.
This commit is contained in:
parent
9f66ad0c5b
commit
272b1b6ab7
1 changed files with 4 additions and 0 deletions
4
bb.sh
4
bb.sh
|
@ -95,6 +95,9 @@ global_variables() {
|
||||||
# extra content to add just after we open the <body> tag
|
# extra content to add just after we open the <body> tag
|
||||||
# and before the actual blog content
|
# and before the actual blog content
|
||||||
body_begin_file=""
|
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')
|
# CSS files to include on every page, f.ex. css_include=('main.css' 'blog.css')
|
||||||
# leave empty to use generated
|
# leave empty to use generated
|
||||||
css_include=()
|
css_include=()
|
||||||
|
@ -480,6 +483,7 @@ create_html_page() {
|
||||||
# close divs
|
# close divs
|
||||||
echo '</div></div>' # divbody and divbodyholder
|
echo '</div></div>' # divbody and divbodyholder
|
||||||
disqus_footer
|
disqus_footer
|
||||||
|
[[ -n $body_end_file ]] && cat "$body_end_file"
|
||||||
echo '</body></html>'
|
echo '</body></html>'
|
||||||
} > "$filename"
|
} > "$filename"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue