From 4eb8948870c6c96bdd67f58c178ccab030dd85cf Mon Sep 17 00:00:00 2001 From: SG Date: Thu, 5 Jun 2025 18:16:43 +0300 Subject: [PATCH] Updates --- hydrogen.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hydrogen.py b/hydrogen.py index f6294ed..6bd9e89 100644 --- a/hydrogen.py +++ b/hydrogen.py @@ -70,14 +70,14 @@ content_item_template = env.get_template("content_item.html") # Parse the content files content_items = [] for md_file in content_dir.glob("*.md"): - citem = ContentItemPrototype(md_file) - citem.render_content() + current_content_item = ContentItemPrototype(md_file) + current_content_item.render_content() content_items.append({ - "slug": citem.slug, - "title": citem.title, - "date": citem.date, - "preview": markdown.markdown(citem.preview), - "image": citem.image, + "slug": current_content_item.slug, + "title": current_content_item.title, + "date": current_content_item.date, + "preview": markdown.markdown(current_content_item.preview), + "image": current_content_item.image, }) # Render the index file