blob: 8824f787ccd4ac59b71e4ce1fa51117b3a53378c (
plain)
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
|
{% extends "inherit/00_base.tmpl" %}
{% block title %}Index{% endblock %}
{% block head %}
{{ super() }}
<style type="text/css">
.important { color: #336699; }
</style>
{% endblock %}
{% block content %}
<h1>Index</h1>
<p class="important">
Welcome to my blog!
</p>
{% if exists("blog_listing") %}
<table>
## for entry in blog_listing
<tr>
<td>{{ loop.index1 }}</td>
<td><a href="{{ entry.filename }}">{{ entry.filename }}</a></td>
<td>{{ entry.title }}</td>
<td>{{ entry.tags }}</td>
<td>{{ entry.author }}</td>
<td>{{ entry.createDate }}</td>
<td>{{ entry.publishDate }}</td>
<td>{{ entry.published }}</td>
<td>
{{ indent(entry.content, 16, false, false) }}
</td>
<td>{% if loop.is_last == false %}more{% else %}eof{% endif %}<br>
</tr>
## endfor
</table>
{% endif %}
## if exists("blog_post")
<a href="{{ blog_post.filename }}">{{ blog_post.title }}</a><br>
{{ blog_post.publishDate }} by {{ blog_post.author }}<br>
{{ indent(blog_post.content, 4, false, false) }}
## endif
{% endblock %}
|