diff options
author | 2021-03-23 23:17:55 +0800 | |
---|---|---|
committer | 2021-03-23 23:17:55 +0800 | |
commit | 82daedc766dc3986dc9ac17ea8a6b3da87a6b1ac (patch) | |
tree | f7f2cf5d08525bb5849676903772c61a79022e36 /pydis_site/templates | |
parent | Rename `articles` to `pages`. (diff) |
Simplify content app.
Rather than having two views for the base page and all other pages, all
pages now use the same view.
The view context handler is simplified to take advantage of pathlib
features.
The markdown folder is now /content/resources/* rather than
/content/resources/content/*, as the latter is unnecessary nesting.
Diffstat (limited to 'pydis_site/templates')
-rw-r--r-- | pydis_site/templates/content/listing.html | 5 | ||||
-rw-r--r-- | pydis_site/templates/content/page.html | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/pydis_site/templates/content/listing.html b/pydis_site/templates/content/listing.html index 39eae1c2..097cac4f 100644 --- a/pydis_site/templates/content/listing.html +++ b/pydis_site/templates/content/listing.html @@ -16,13 +16,10 @@ <div class="container"> <nav class="breadcrumb is-pulled-left" aria-label="breadcrumbs"> <ul> - {% if in_category %} - <li><a href="{% url "content:pages" %}">Pages</a></li> - {% endif %} {% for item in breadcrumb_items %} <li><a href="{% url "content:page_category" location=item.path %}">{{ item.name }}</a></li> {% endfor %} - <li class="is-active"><a href="#">{{ category_info.name|default:"Pages" }}</a></li> + <li class="is-active"><a href="#">{{ category_info.name }}</a></li> </ul> </nav> </div> diff --git a/pydis_site/templates/content/page.html b/pydis_site/templates/content/page.html index 3b0ebb5f..433baa69 100644 --- a/pydis_site/templates/content/page.html +++ b/pydis_site/templates/content/page.html @@ -20,7 +20,6 @@ <div class="container"> <nav class="breadcrumb is-pulled-left" aria-label="breadcrumbs"> <ul> - <li><a href="{% url "content:pages" %}">Pages</a></li> {% for item in breadcrumb_items %} <li><a href="{% url "content:page_category" location=item.path %}">{{ item.name }}</a></li> {% endfor %} |