diff options
| author | 2021-04-25 21:25:10 +0200 | |
|---|---|---|
| committer | 2021-04-25 21:25:10 +0200 | |
| commit | bd5f444e86cebb8d3928af0696a4a7b9c6a1a1fb (patch) | |
| tree | 0a98b8040f455a3279ab91cb8510f86fe6ec32d6 /pydis_site/apps/content/views | |
| parent | Merge pull request #468 from python-discord/content-app-improvements (diff) | |
| parent | Increase padding between text and images in lists. (diff) | |
Merge pull request #478 from python-discord/content-migration
Dewikification: Migrate site content to markdown.
Diffstat (limited to 'pydis_site/apps/content/views')
| -rw-r--r-- | pydis_site/apps/content/views/page_category.py | 2 |
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 4031fde2..7427ec58 100644 --- a/pydis_site/apps/content/views/page_category.py +++ b/pydis_site/apps/content/views/page_category.py @@ -53,7 +53,7 @@ class PageOrCategoryView(TemplateView): context["subarticles"] = [] for entry in self.category_path.iterdir(): entry_info = {"path": entry.stem} - if entry.suffix == ".md": + if entry.suffix == ".md" and not entry.with_suffix("").is_dir(): entry_info["name"] = frontmatter.load(entry).metadata["title"] elif entry.is_dir(): entry_info["name"] = utils.get_category(entry)["title"] |