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/apps/content/urls.py | |
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/apps/content/urls.py')
-rw-r--r-- | pydis_site/apps/content/urls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/urls.py b/pydis_site/apps/content/urls.py index 1406f672..c11b222a 100644 --- a/pydis_site/apps/content/urls.py +++ b/pydis_site/apps/content/urls.py @@ -4,6 +4,6 @@ from . import views app_name = "content" urlpatterns = [ - path("", views.PagesView.as_view(), name='pages'), + path("", views.PageOrCategoryView.as_view(), name='pages'), path("<path:location>/", views.PageOrCategoryView.as_view(), name='page_category'), ] |