mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
parent
5cf3481483
commit
df54953032
1 changed files with 1 additions and 0 deletions
|
|
@ -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.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue