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 ?> |
ire
2018/03/13 08:31:36
Shouldn't the body-container wrap *everything*, in
juliandoucette
2018/03/13 12:14:03
Ack.
I meant jinja block body, not html <body>.
|
<? include scripts ?> |
</body> |
</html> |