mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixed critical build error when translated versions of article has same slug. Ref #1107
This commit is contained in:
parent
5a6d60001d
commit
5fd8c2fff0
1 changed files with 2 additions and 2 deletions
|
|
@ -353,8 +353,8 @@ class ArticlesGenerator(Generator):
|
|||
|
||||
def generate_drafts(self, write):
|
||||
"""Generate drafts pages."""
|
||||
for article in self.drafts:
|
||||
write(os.path.join('drafts', '%s.html' % article.slug),
|
||||
for article in chain(self.translations, self.drafts):
|
||||
write(os.path.join('drafts', article.save_as),
|
||||
self.get_template(article.template), self.context,
|
||||
article=article, category=article.category,
|
||||
all_articles=self.articles)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue