diff options
author | 2020-11-28 10:00:58 +0200 | |
---|---|---|
committer | 2020-11-28 10:00:58 +0200 | |
commit | 6989307606cfb36739469ca230799fbf8294456d (patch) | |
tree | d1445bfaf05cae98fee41d2d8f96dcd2290d62d8 /pydis_site | |
parent | Add testing subcategory and article into it (diff) |
Change article.html to match with unlimited categories
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/templates/content/article.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/templates/content/article.html b/pydis_site/templates/content/article.html index 92b1b1ce..c7b85567 100644 --- a/pydis_site/templates/content/article.html +++ b/pydis_site/templates/content/article.html @@ -20,9 +20,9 @@ <nav class="breadcrumb is-pulled-left" aria-label="breadcrumbs"> <ul> <li><a href="{% url "content:articles" %}">Articles</a></li> - {% if category_data.raw_name is not None %} - <li><a href="{% url "content:category" category=category_data.raw_name %}">{{ category_data.name }}</a></li> - {% endif %} + {% for item in breadcrumb_items %} + <li><a href="{% url "content:article_category" location=item.path %}">{{ item.name }}</a></li> + {% endfor %} <li class="is-active"><a href="#">{{ article.metadata.title }}</a></li> </ul> </nav> |