Skip to content
Permalink
Browse files

Named format for name replacement

  • Loading branch information
da2x committed Aug 29, 2015
1 parent 63b0d4f commit fb0c4546a81362a9cd5095bb67d80e02cb840092
Showing with 3 additions and 3 deletions.
  1. +1 −1 nikola/conf.py.in
  2. +1 −1 nikola/nikola.py
  3. +1 −1 nikola/plugins/task/indexes.py
@@ -254,7 +254,7 @@ POSTS_SECTIONS = True
# },
# }

# Titles for per-section index pages. Can be either one string where "%s"
# Titles for per-section index pages. Can be either one string where "{name}"
# is substituted or the POSTS_SECTION_NAME, or a dict of sections. Note
# that the INDEX_PAGES option is also applied to section page titles.
# POSTS_SECTION_TITLE = {
@@ -423,7 +423,7 @@ def __init__(self, **config):
'POSTS_SECTION_DESCRIPTIONS': "",
'POSTS_SECTION_FROM_META': False,
'POSTS_SECTION_NAME': "",
'POSTS_SECTION_TITLE': "%s",
'POSTS_SECTION_TITLE': "{name}",
'PAGES': (("stories/*.txt", "stories", "story.tmpl"),),
'PANDOC_OPTIONS': [],
'PRETTY_URLS': False,
@@ -149,7 +149,7 @@ def cat_path(i, displayed_i, num_pages, force_addition, extension=None):
section_title = kw["posts_section_title"]
if not section_title:
section_title = post_list[0].section_name(lang)
section_title = section_title.format(post_list[0].section_name(lang))
section_title = section_title.format(name=post_list[0].section_name(lang))

task = self.site.generic_index_renderer(lang, post_list, section_title, "sectionindex.tmpl", context, kw, self.name, cat_link, cat_path)
else:

0 comments on commit fb0c454

Please sign in to comment.
You can’t perform that action at this time.