feat: added datetime

This commit is contained in:
2025-04-15 17:08:37 +02:00
parent 334c82d098
commit afefce0a11
2 changed files with 8 additions and 3 deletions

View File

@@ -124,7 +124,8 @@ class ArticleOverview:
self.article_written = datetime.datetime.fromisoformat(article_config["datetime"]) if "datetime" in article_config else datetime.datetime.fromtimestamp(self.directory.stat().st_mtime)
self.location_in_tree: List[str] = location_in_tree or []
self.location_in_tree.append(self.slug)
if not is_root:
self.location_in_tree.append(self.slug)
self.url = "/" + "/".join(self.location_in_tree)
self.dist_path = Path(config.setup.dist_directory, *self.location_in_tree)