updates
This commit is contained in:
@@ -178,7 +178,7 @@ class Site:
|
|||||||
visible_content_items = [c for c in self.content_items if c.data.get("hidden") != True]
|
visible_content_items = [c for c in self.content_items if c.data.get("hidden") != True]
|
||||||
for category in self.categories:
|
for category in self.categories:
|
||||||
category_index = Path(f"{self.output_dir}/categories/{category}.html")
|
category_index = Path(f"{self.output_dir}/categories/{category}.html")
|
||||||
category_items = [i for i in visible_content_items if category in i.data.get("categories")]
|
category_items = [i for i in visible_content_items if category in i.data.get("categories", "default")]
|
||||||
with (category_index).open(mode="w", encoding="utf-8") as f:
|
with (category_index).open(mode="w", encoding="utf-8") as f:
|
||||||
f.write(config.index_template.render(page_title=f"{config.site_name}: [ {category} ]", content_items=category_items, categories = self.categories, parent_path = '../', footer_data = footer_data))
|
f.write(config.index_template.render(page_title=f"{config.site_name}: [ {category} ]", content_items=category_items, categories = self.categories, parent_path = '../', footer_data = footer_data))
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
argparse
|
argparse
|
||||||
|
bs4
|
||||||
python-frontmatter
|
python-frontmatter
|
||||||
jinja2
|
jinja2
|
||||||
markdown
|
markdown
|
||||||
|
|||||||
Reference in New Issue
Block a user