Updates
This commit is contained in:
14
hydrogen.py
14
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
|
||||
|
||||
Reference in New Issue
Block a user