This commit is contained in:
SG
2025-06-05 18:16:43 +03:00
parent 046ec8a9ee
commit 4eb8948870

View File

@@ -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