forked from Scalpelcn/Farbox-Simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.html
36 lines (28 loc) · 906 Bytes
/
archive.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
{% extends 'base.html' %}
{% set total_posts = get_posts(limit=300, sort='desc') %}
{% if request.args.use == 'tags' %}
{% set entries = group(total_posts, 'tags') %}
{% else %}
{% set entries = group(total_posts, 'date:year', reverse=True) %}
{% endif %}
{% block content %}
<div class="container_16 clearfix">
<div class="grid_10" id="content">
<div class="post nopost">
<h1 class="entry_title">Archive</h1>
{% for year, posts in entries %}
<h3>{{ year }}</h3>
<ul class='listing'>
{% for post in posts %}
<li class="listing-item">
<span>{{ post.date | date("%Y-%m-%d") }}</span>
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}
{% include 'include/paginator.html' %}
</div>
</div>
</div>
{% endblock %}