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
|
# Parse the content files
|
||||||
content_items = []
|
content_items = []
|
||||||
for md_file in content_dir.glob("*.md"):
|
for md_file in content_dir.glob("*.md"):
|
||||||
citem = ContentItemPrototype(md_file)
|
current_content_item = ContentItemPrototype(md_file)
|
||||||
citem.render_content()
|
current_content_item.render_content()
|
||||||
content_items.append({
|
content_items.append({
|
||||||
"slug": citem.slug,
|
"slug": current_content_item.slug,
|
||||||
"title": citem.title,
|
"title": current_content_item.title,
|
||||||
"date": citem.date,
|
"date": current_content_item.date,
|
||||||
"preview": markdown.markdown(citem.preview),
|
"preview": markdown.markdown(current_content_item.preview),
|
||||||
"image": citem.image,
|
"image": current_content_item.image,
|
||||||
})
|
})
|
||||||
|
|
||||||
# Render the index file
|
# Render the index file
|
||||||
|
|||||||
Reference in New Issue
Block a user