Mercurial > piecrust2
comparison docs/templates/doc.html @ 243:26e59f837558
docs: Add embryo of a documentation website.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 19 Feb 2015 08:09:17 -0800 |
parents | |
children | a5d21fac8e3f |
comparison
equal
deleted
inserted
replaced
242:f130365568ff | 243:26e59f837558 |
---|---|
1 {% extends "default.html" %} | |
2 | |
3 {% block header %} | |
4 <header class="documentation"> | |
5 <h1>{{ page.title }}</h1> | |
6 </header> | |
7 {% endblock %} | |
8 | |
9 {% block content %} | |
10 <div class="container"> | |
11 <section class="col-md-8"> | |
12 {{ content|raw }} | |
13 </section> | |
14 <aside class="col-md-4"> | |
15 <ul class="doc-level1"> | |
16 {% for p in family.root %} | |
17 {% if p.is_dir and p.is_page %} | |
18 <li><a href="{{p.url}}">{{p.title}}</a> | |
19 <ul class="doc-level2"> | |
20 {% for p2 in p.children %} | |
21 <li><a href="{{p2.url}}">{{p2.title}}</a></li> | |
22 {% endfor %} | |
23 </ul> | |
24 </li> | |
25 {% elif not p.is_dir and p.order %} | |
26 <li><a href="{{p.url}}">{{p.title}}</a></li> | |
27 {% endif %} | |
28 {% endfor %} | |
29 </ul> | |
30 </aside> | |
31 </div> | |
32 {% endblock %} | |
33 |