aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/views
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-03-24 14:14:43 +0800
committerGravatar kosayoda <[email protected]>2021-03-24 14:14:43 +0800
commitdbac69c7a58938fb24128a787971ea1bc1892110 (patch)
tree7926d90cf2c9954b6dcfdafdbe0677c30f7a8377 /pydis_site/apps/content/views
parentRefactor common HTML into a base template. (diff)
Improve variable and key names for page utils.
Diffstat (limited to 'pydis_site/apps/content/views')
-rw-r--r--pydis_site/apps/content/views/page_category.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/views/page_category.py b/pydis_site/apps/content/views/page_category.py
index 623c2596..0bef82d0 100644
--- a/pydis_site/apps/content/views/page_category.py
+++ b/pydis_site/apps/content/views/page_category.py
@@ -39,7 +39,7 @@ class PageOrCategoryView(TemplateView):
context["category_info"] = category
context["page_title"] = category["name"]
context["page_description"] = category["description"]
- context["content"] = utils.get_pages(self.full_location)
+ context["pages"] = utils.get_category_pages(self.full_location)
context["path"] = f"{self.location}/" # Add trailing slash here to simplify template
elif self.full_location.with_suffix(".md").is_file():
page_result = utils.get_page(self.full_location.with_suffix(".md"))