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/category.html


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