mirror of
https://github.com/vale981/ablog
synced 2025-03-05 09:11:38 -05:00
Added post_always_section
configuration options (issue #8).
This commit is contained in:
parent
44a56a56bd
commit
e2b9551101
2 changed files with 2 additions and 1 deletions
|
@ -48,6 +48,7 @@ CONFIG = [
|
|||
('post_auto_image', 0, True),
|
||||
('post_auto_excerpt', 1, True),
|
||||
('post_redirect_refresh', 5, True),
|
||||
('post_always_section', False, True),
|
||||
|
||||
('disqus_shortname', None, True),
|
||||
('disqus_drafts', False, True),
|
||||
|
|
|
@ -130,7 +130,7 @@ def process_posts(app, doctree):
|
|||
app.env.metadata[docname]['orphan'] = True
|
||||
|
||||
blog = Blog(app)
|
||||
multi_post = len(post_nodes) > 1
|
||||
multi_post = len(post_nodes) > 1 or blog.post_always_section
|
||||
for order, node in enumerate(post_nodes, start=1):
|
||||
|
||||
if multi_post:
|
||||
|
|
Loading…
Add table
Reference in a new issue