fix: don't expect title field for feeds
This commit is contained in:
parent
df19668260
commit
2c5e94c265
@ -60,6 +60,11 @@ def create_frontmatter(entry):
|
|||||||
else:
|
else:
|
||||||
author = ""
|
author = ""
|
||||||
|
|
||||||
|
if "title" in entry:
|
||||||
|
title = entry.title
|
||||||
|
else:
|
||||||
|
title = ""
|
||||||
|
|
||||||
tags = []
|
tags = []
|
||||||
if "tags" in entry:
|
if "tags" in entry:
|
||||||
# TODO finish categories
|
# TODO finish categories
|
||||||
@ -67,7 +72,7 @@ def create_frontmatter(entry):
|
|||||||
tags.append(t["term"])
|
tags.append(t["term"])
|
||||||
|
|
||||||
frontmatter = {
|
frontmatter = {
|
||||||
"title": entry.title,
|
"title": title,
|
||||||
"date": published.format(),
|
"date": published.format(),
|
||||||
"summary": "",
|
"summary": "",
|
||||||
"author": author,
|
"author": author,
|
||||||
|
Loading…
Reference in New Issue
Block a user