diff options
author | 2021-04-01 19:11:28 +0800 | |
---|---|---|
committer | 2021-04-01 19:11:28 +0800 | |
commit | bbb6fc242a4eb10551a8549c400f3db88658fce1 (patch) | |
tree | 24624910bcf33e1b16033885e619a4d629ea953f /pydis_site/templates/content/base.html | |
parent | Document defining a table of contents for a page. (diff) |
Add a dropdown menu listing direct children.
This only shows when the page is also a category, since regular pages
have no children and regular categories already list their children.
Diffstat (limited to 'pydis_site/templates/content/base.html')
-rw-r--r-- | pydis_site/templates/content/base.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/templates/content/base.html b/pydis_site/templates/content/base.html index 19eec5d4..21895479 100644 --- a/pydis_site/templates/content/base.html +++ b/pydis_site/templates/content/base.html @@ -14,6 +14,7 @@ <section class="breadcrumb-section section"> <div class="container"> + {# Article breadcrumb #} <nav class="breadcrumb is-pulled-left" aria-label="breadcrumbs"> <ul> {% for item in breadcrumb_items %} @@ -22,6 +23,10 @@ <li class="is-active"><a href="#">{{ page_title }}</a></li> </ul> </nav> + {# Sub-Article dropdown for category pages #} + {% if subarticles %} + {% include "content/dropdown.html" %} + {% endif %} </div> </section> |