Index: templates/default.tmpl |
=================================================================== |
--- a/templates/default.tmpl |
+++ b/templates/default.tmpl |
@@ -27,42 +27,44 @@ |
{% block head %} |
{{head|safe}} |
{% endblock %} |
</head> |
<body> |
<? include navbar ?> |
- <div id="content" class="container content {{ localefile == "index" and page }}"> |
- {% if not noheading %} |
- <h1>{{title|translate("title")}}</h1> |
- {% endif %} |
+ <div class="body-container"> |
+ <div id="content" class="container content {{ localefile == "index" and page }}"> |
+ {% if not noheading %} |
+ <h1>{{title|translate("title")}}</h1> |
+ {% endif %} |
- {% if not notoc %} |
- {% macro toc(toclist) %} |
- <ul> |
- {% for item in toclist %} |
- <li> |
- <a href="#{{item.anchor}}">{{item.title}}</a> |
- {% if item.subitems %}{{toc(item.subitems)}}{% endif %} |
- </li> |
- {% endfor %} |
- </ul> |
- {% endmacro %} |
+ {% if not notoc %} |
+ {% macro toc(toclist) %} |
+ <ul> |
+ {% for item in toclist %} |
+ <li> |
+ <a href="#{{item.anchor}}">{{item.title}}</a> |
+ {% if item.subitems %}{{toc(item.subitems)}}{% endif %} |
+ </li> |
+ {% endfor %} |
+ </ul> |
+ {% endmacro %} |
- {% set toclist = body|toclist %} |
- {% if toclist %} |
- <div class="toc"> |
- {{toc(toclist)}} |
- </div> |
+ {% set toclist = body|toclist %} |
+ {% if toclist %} |
+ <div class="toc"> |
+ {{toc(toclist)}} |
+ </div> |
+ {% endif %} |
{% endif %} |
- {% endif %} |
- {% block body %} |
- {{body|safe}} |
- {% endblock %} |
+ {% block body %} |
+ {{body|safe}} |
+ {% endblock %} |
+ </div> |
</div> |
<? include footer ?> |
<? include scripts ?> |
</body> |
</html> |