1
0
Fork 0
forked from github/pelican

Add categories.html template to default theme

This commit is contained in:
Paolo Melchiorre 2022-02-01 19:07:23 +01:00 committed by GitHub
commit 2f5fc10614
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 3 deletions

View file

@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - Categories{% endblock %}
{% block content %}
<section id="content" class="body">
<h1>Categories for {{ SITENAME }}</h1>
<ul>
{% for category, articles in categories|sort %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>
</section>
{% endblock %}