|
@ -114,14 +114,15 @@ def process_markdown_files(): |
|
|
|
|
|
|
|
|
html_content = markdown.markdown( |
|
|
html_content = markdown.markdown( |
|
|
text, extensions=md_extensions, output_format='html5') |
|
|
text, extensions=md_extensions, output_format='html5') |
|
|
|
|
|
summary = find_summary(html_content) |
|
|
output = template.format( |
|
|
output = template.format( |
|
|
title=title, content=html_content, page_url=page_url) |
|
|
|
|
|
|
|
|
title=title, content=html_content, page_url=page_url, summary=summary) |
|
|
|
|
|
|
|
|
update_date = find_update_date(text) |
|
|
update_date = find_update_date(text) |
|
|
if update_date: |
|
|
if update_date: |
|
|
blog_entry['url'] = 'https://www.mcmillen.dev/' + page_url |
|
|
blog_entry['url'] = 'https://www.mcmillen.dev/' + page_url |
|
|
blog_entry['date'] = update_date |
|
|
blog_entry['date'] = update_date |
|
|
blog_entry['summary'] = find_summary(html_content) |
|
|
|
|
|
|
|
|
blog_entry['summary'] = summary |
|
|
blog_entry['content'] = html_content |
|
|
blog_entry['content'] = html_content |
|
|
blog_entries.append(blog_entry) |
|
|
blog_entries.append(blog_entry) |
|
|
|
|
|
|
|
|