updates
This commit is contained in:
@@ -116,7 +116,6 @@ class Site:
|
||||
def map_categories(self):
|
||||
for content_item in self.content_items:
|
||||
for category in content_item.data.get("categories"):
|
||||
print(f"!!!!!!! {category}")
|
||||
if not category == "default":
|
||||
self.categories[category].append(content_item.slug)
|
||||
|
||||
@@ -160,7 +159,6 @@ class Site:
|
||||
# Render the categories indices
|
||||
visible_content_items = [c for c in self.content_items if c.data.get("hidden") != True]
|
||||
for category in self.categories:
|
||||
print(F"CREATING CATEGORY {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")]
|
||||
with (category_index).open(mode="w", encoding="utf-8") as f:
|
||||
|
||||
Reference in New Issue
Block a user