diff --git a/bin/template.html b/bin/template.html
index cffae1b3b..2add09801 100644
--- a/bin/template.html
+++ b/bin/template.html
@@ -13,11 +13,11 @@ $if(keywords)$
$endif$
$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$
+
+
$for(css)$
$endfor$
-
-
$if(math)$
$math$
$endif$
@@ -29,6 +29,9 @@ $for(header-includes)$
$endfor$
+$for(include-before)$
+$include-before$
+$endfor$
$if(title)$
@@ -116,7 +119,9 @@ $body$
-
+$for(include-after)$
+$include-after$
+$endfor$