A mini theme for the pelican static site generator
git clone https://github.com/m-col/mini-theme
Files | Refs | Readme

-rw-r--r-- templates/archives.html


      1 {% extends "base.html" %}
      2 
      3 
      4 {% block title %}{{ SITENAME }} / {{ ARCHIVES_TITLE }}{% endblock %}
      5 
      6 
      7 {% block header %}
      8 <a href=/>mcol.xyz</a> /
      9 <a href=/{{ output_file }}>{{ ARCHIVES_TITLE }}</a>
     10 {% endblock %}
     11 
     12 
     13 {% block content %}
     14 {{ ABOUT }}
     15 <hr>
     16 
     17 <table>
     18 	{% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %}
     19 	<tr><td></td><td><h2>{{ year }}</h2></td></tr>
     20 	{% for month, articles in date_year|groupby('date.month')|sort(reverse=True) %}
     21 	{% for article in articles %}
     22 	<tr><td>{{ article.date.strftime('%b %d') }}</td>
     23 		<td><a href="/{{ article.url }}">{{ article.title }}</a><td></tr>
     24 	{% endfor %}
     25 	{% endfor %}
     26 	{% endfor %}
     27 </table>
     28 
     29 <footer><hr>- mcol.xyz -</footer>
     30 {% endblock %}
     31