Commit 01a6286a authored by Ana Guerrero López's avatar Ana Guerrero López Committed by Ana Guerrero López

add year and month archives

All the items for a given year or year/month will be listed
without pagination
parent 14ee653a
......@@ -27,6 +27,10 @@ ARTICLE_LANG_SAVE_AS = '{date:%Y}/{date:%m}/{slug}-{lang}.html'
AUTHOR_URL = ''
AUTHOR_SAVE_AS = ''
# Create month and year archives
YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/index.html'
# Feeds settings
FEED_ATOM = 'feeds/atom.xml'
FEED_RSS = 'feeds/feed.rss'
......
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - Archives for {{ period | reverse | join(' ') }}{% endblock %}
{% block content %}
<h1>Showing archives for {{ period | reverse | join(' ') }}</h1>
<dl>
{% for article in dates %}
<div class='article'>
<div class="content-title">
<a href="{{ SITEURL }}/{{ article.url }}"><h1>{{ article.title }}</h1></a>
{% include "metadata.html" %}
</div>
<div>{{ article.content }}</div>
<hr />
</div>
{% endfor %}
</dl>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment