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


      1 {% extends "base.html" %}
      2 
      3 
      4 {% block title %}{{ SITENAME }} / categories{% endblock %}
      5 
      6 
      7 {% block header %}
      8 <a href=/>mcol.xyz</a> /
      9 <a href=/{{ ARCHIVES_SAVE_AS }}>{{ ARCHIVES_TITLE }}</a> /
     10 <a href=/{{ output_file }}>categories</a>
     11 {% endblock %}
     12 
     13 
     14 {% block content %}
     15 <table>
     16 	{% for category, articles in categories|sort %}
     17 	<tr><td><a href="/{{ category.url }}">{{ category }} ({{ articles|count }})</a></td></tr>
     18 	{% endfor %}
     19 </table>
     20 <footer><hr>- mcol.xyz -</footer>
     21 {% endblock %}
     22