mirror of
https://github.com/getpelican/pelican.git
synced 2026-05-28 15:58:22 +02:00
Merge 8945617340 into 4a204f19c9
This commit is contained in:
commit
1fcbaff870
2 changed files with 3 additions and 1 deletions
|
|
@ -149,6 +149,7 @@ Setting name (default value) What doe
|
|||
These templates need to use ``DIRECT_TEMPLATES`` setting.
|
||||
`ASCIIDOC_OPTIONS` (``[]``) A list of options to pass to AsciiDoc. See the `manpage
|
||||
<http://www.methods.co.nz/asciidoc/manpage.html>`_
|
||||
`DRAFT_PATH` (``drafts``) Path where drafts will be saved.
|
||||
===================================================================== =====================================================================
|
||||
|
||||
.. [#] Default is the system locale.
|
||||
|
|
|
|||
|
|
@ -353,7 +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),
|
||||
write(os.path.join(self.settings.get('DRAFT_PATH', 'drafts'),
|
||||
'%s.html' % article.slug),
|
||||
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