mirror of
https://github.com/getpelican/pelican.git
synced 2026-06-03 09:56:56 +02:00
bugfix: draft articles required a category
Draft articles seemed to unintentionally have 'category' as a required metadata key. I have made them optional, just like non-draft articles.
This commit is contained in:
parent
3c69dc68d2
commit
459c41b9d6
1 changed files with 1 additions and 1 deletions
|
|
@ -667,7 +667,7 @@ class ArticlesGenerator(CachingGenerator):
|
|||
self.get_template(draft.template),
|
||||
self.context,
|
||||
article=draft,
|
||||
category=draft.category,
|
||||
category=getattr(draft, "category", None),
|
||||
override_output=hasattr(draft, "override_save_as"),
|
||||
blog=True,
|
||||
all_articles=self.articles,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue