From bf45bf9cdc5f348723a6e868742b2d93f2ac4749 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Fri, 11 Dec 2020 17:23:49 +0100 Subject: [PATCH] List articles with a taxonomy --- static/style.css | 4 ++++ templates/categories/single.html | 15 +++++++++++++++ templates/tags/single.html | 15 +++++++++++++++ 3 files changed, 34 insertions(+) diff --git a/static/style.css b/static/style.css index 2f0dae3..8bdc29b 100644 --- a/static/style.css +++ b/static/style.css @@ -70,6 +70,10 @@ a { } a:hover { text-decoration: underline } +hr { + border: none; + border-bottom: 1px solid #bbb; +} @media screen and (max-width: 50em){ body { grid-template-columns: auto } diff --git a/templates/categories/single.html b/templates/categories/single.html index e69de29..b3f788e 100644 --- a/templates/categories/single.html +++ b/templates/categories/single.html @@ -0,0 +1,15 @@ +{% extends "index.html" %} + +{% block title %} + {{ term.name | capitalize }} – {{ config.title }} +{% endblock title %} + +{% block content %} +

{{ term.name | capitalize }}

+
+ + {% for page in term.pages %} + {{ macros::list_article(page=page) }} + {% endfor %} + +{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html index e69de29..b3f788e 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -0,0 +1,15 @@ +{% extends "index.html" %} + +{% block title %} + {{ term.name | capitalize }} – {{ config.title }} +{% endblock title %} + +{% block content %} +

{{ term.name | capitalize }}

+
+ + {% for page in term.pages %} + {{ macros::list_article(page=page) }} + {% endfor %} + +{% endblock content %}