-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
21 lines (17 loc) · 833 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% extends 'layout.html' %}
{% block content %}
{% for post in posts %}
<div class="item">
<div class="header">
<h1><a href="{{ get_url(post.url) }}">{{ post.title }}</a></h1>
<h2>{{ post.date }}{% if post.tags %} <span>»</span> {% for tag in post.tags %}<a href="{{ get_url(posts.tags[tag].url) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</h2>
</div>
<div class="body">
<p>{% if post.summary %}{{ post.summary }}{% elif post.excerpt %}{{ post.excerpt }}{% else %}{{ post.content }}{% endif %}</p>
</div>
<div class="footer">
<p><a href="{{ get_url(post.url) }}">Continue Reading</a></p>
</div>
</div>
{% endfor %}
{% endblock %}