forked from mattmakai/fullstackpython.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (33 loc) · 1.06 KB
/
index.html
File metadata and controls
35 lines (33 loc) · 1.06 KB
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
{% extends "base.html" %}
{% block content %}
<div class="row">
<div class="col-md-8">
{% for page in pages|sort(attribute='sort-order') %}
{% if loop.first %}
<h1>{{ page.title }}</h1>
{{ page.content }}
{% for p in pages|sort(attribute='sort-order') %}
{% if next_up %}
<br/>
Next read about
<a href="/{{ p.slug }}.html">{{ p.title|lower }}</a>.
{% set next_up = False %}
{% endif %}
{% if p.slug == page.slug %}
{% set next_up = True %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</div>
<div class="col-md-offset-1 col-md-3" id="sidebar">
<div class="list-group">
{% for p in pages|sort(attribute='sort-order') %}
<a href="/{{ p.slug }}.html" class="list-group-item {% if p.slug == 'introduction' %}active{% endif %}">{{ p.title }}</a>
{% endfor %}
</div>
</div>
</div>
{% endblock %}
{% block js %}
{% endblock %}