From 509dc4538f6593982895670aca1cf8a2277bb8cf Mon Sep 17 00:00:00 2001 From: SG Date: Thu, 5 Jun 2025 18:18:22 +0300 Subject: [PATCH] Updates --- hydrogen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hydrogen.py b/hydrogen.py index 6bd9e89..057e1ab 100644 --- a/hydrogen.py +++ b/hydrogen.py @@ -39,12 +39,13 @@ class ContentItemPrototype: self.content_output_path = output_dir / f"{self.slug}.html" self.image_src_file = Path(f"{content_dir}/{md_file.stem}.jpg") self.image = f"images/{md_file.stem}.jpg" if self.image_src_file.exists() else None - if self.slug == 'about': - self.image = 'static/about.jpg' self.custom_css_src_file = Path(f"{content_dir}/{md_file.stem}.css") self.custom_css = f"assets/css/{md_file.stem}.css" if self.custom_css_src_file.exists() else None self.custom_js_src_file = Path(f"{content_dir}/{md_file.stem}.js") self.custom_js = f"assets/js/{md_file.stem}.js" if self.custom_js_src_file.exists() else None + # Special handling for the 'about' item + if self.slug == 'about': + self.image = 'static/about.jpg' # Recreate the output dir if needed if output_dir.exists():