-
Notifications
You must be signed in to change notification settings - Fork 20
/
doc.html
44 lines (37 loc) · 1.04 KB
/
doc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{# doc.html --- documentation article template -*- Mode: Jinja2; -*- #}
{% extends "layout.html" %}
{% block title %}documentation{% endblock %}
{% block page %}
<div class="page doc">
{# Links for all entries in the same route; always starts with index #}
<div class="left-pane">
<h3>
<a href="{{ url_for(route.name, slug="index") }}">
Getting Started
</a>
</h3>
{% for subpost in weblorg_route_posts(route.name) %}
{% if subpost.slug != "index" %}
<h3>
<a href="{{ url_for(route.name, slug=subpost.slug) }}">
{{ subpost.title }}
</a>
</h3>
{% endif %}
{% endfor %}
</div>
{# Content of the currently selected post #}
<div class="content">
<article>
{% if post.title %}
<div class="title">
<h1>{{ post.title }}</h1>
</div>
{% endif %}
<div class="content">
{{ post.html|safe }}
</div>
</article>
</div>
</div>
{% endblock %}