blob: 4de6b0864b21c873f10b4291e6638d53534e4228 (
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
|
{% extends "base.html" %}
{% block title %}Home{% endblock %}
{% block body %}
<main>
{{ content}}
<h1>Recent Posts</h1>
<ul>
{% for post in posts[:5] %}
<li><a href="{{post.link}}">{{ post.title }}</a>
<ul>
<li>{{ post.description}}</li>
<li>Published On: {{post.date}}</li>
<li>Tags:
{% for tag in post.tags %}
<a href='/tags/{{tag}}.html'>{{ tag }}</a>{{ ", " if not loop.last else "" }}
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
<b>For all posts go to <a href="/posts">Posts</a></b>
</main>
{% endblock %}
|