1
0
Fork 0
forked from github/pelican

Fix intra-site links to drafts.

Overwrite an article's source path registration when it is
'upgraded' to a draft.

Fixes #865
This commit is contained in:
Ingmar Steen 2015-04-29 15:08:46 +02:00
commit df54953032

View file

@ -525,6 +525,7 @@ class ArticlesGenerator(CachingGenerator):
preread_sender=self,
context_signal=signals.article_generator_context,
context_sender=self)
self.add_source_path(draft)
all_drafts.append(draft)
else:
logger.error("Unknown status '%s' for file %s, skipping it.",