1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2024-10-30 03:45:57 +00:00
pelican-red/templates/categories.html

12 lines
388 B
HTML
Raw Normal View History

{% extends 'base.html' %}
{% block title %}{{ super() }} - Categories{% endblock %}
{% block content %}
<h1>Categories</h1>
<ul class='no-bullet'>
{% for cat, articles in categories %}
<li><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat.name|title }}</a> -
{{ articles|length }}{% if articles|length == 1 %} article {% else %} articles{% endif %}</li>
{% endfor %}
</ul>
{% endblock %}