aboutsummaryrefslogtreecommitdiffstats
path: root/ops/templates/categories.html
diff options
context:
space:
mode:
authorkosmgco <i@ooops.me>2017-02-27 15:26:45 +0800
committerkosmgco <i@ooops.me>2017-02-27 15:26:45 +0800
commit1f3170df75d42d1cab8860080d0c254fb1d9355e (patch)
treedf8625f539a938b0892fa6f8a2b264ad5604c493 /ops/templates/categories.html
parent7e960821836f8d4cc4c84e30002bc634635ca894 (diff)
downloadpelican-themes-1f3170df75d42d1cab8860080d0c254fb1d9355e.tar.gz
update
Diffstat (limited to 'ops/templates/categories.html')
-rw-r--r--ops/templates/categories.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/ops/templates/categories.html b/ops/templates/categories.html
new file mode 100644
index 0000000..26396bb
--- /dev/null
+++ b/ops/templates/categories.html
@@ -0,0 +1,24 @@
+{% extends 'base.html' %}
+
+{% block title %} {{ SITENAME }} - Categories {% endblock %}
+
+{% block container %}
+ <section id="content">
+ <header class="header">
+ <h2 class="blogpost-title">Categories</h2>
+ </header>
+ <dl>
+ {% for category, articles in categories %}
+ <dd>
+ <a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a>({{ articles|count }})
+ </dd>
+ {% endfor %}
+ </dl>
+ </section>
+ <br/><br/><br/>
+
+{% endblock %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %} \ No newline at end of file