md2api 0.5.0__tar.gz → 0.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -124,10 +124,10 @@ def create_category_index(output_path: Path, documents: list[Document]):
|
|
|
124
124
|
published_at=document.published_at
|
|
125
125
|
)
|
|
126
126
|
|
|
127
|
-
if category_name
|
|
128
|
-
category_names[category_name]
|
|
127
|
+
if category_name in category_names.keys():
|
|
128
|
+
category_names[category_name].append(postIndex)
|
|
129
129
|
else:
|
|
130
|
-
category_names[category_name] =
|
|
130
|
+
category_names[category_name] = [postIndex]
|
|
131
131
|
|
|
132
132
|
for category, posts in category_names.items():
|
|
133
133
|
document_path = index_path / Path(category) / Path('index.html')
|
|
File without changes
|