Skip to content
Permalink
Browse files
Fixed another typo and made flake8 happy.
  • Loading branch information
felixfontein committed Sep 9, 2015
1 parent 023f287 commit 168d1e4c5667d1018f8c6ec64a04097d628edcaf
Showing 1 changed file with 1 addition and 2 deletions.
@@ -83,7 +83,6 @@ def gen_tasks(self):
}

template_name = "index.tmpl"
posts = self.site.posts
for lang in kw["translations"]:
def page_link(i, displayed_i, num_pages, force_addition, extension=None):
feed = "_atom" if extension == ".atom" else ""
@@ -265,7 +264,7 @@ def index_section_path(self, name, lang, is_feed=False):
if name in self.number_of_pages_section[lang]:
number_of_pages = self.number_of_pages_section[lang][name]
else:
posts = [post for post in self._get_filtered_posts(lang, self.site.config['SHOW_UNTRANSLATED_POSTS']) if p.section_slug(lang) == name]
posts = [post for post in self._get_filtered_posts(lang, self.site.config['SHOW_UNTRANSLATED_POSTS']) if post.section_slug(lang) == name]
number_of_pages = self._compute_number_of_pages(posts, self.site.config['INDEX_DISPLAY_POST_COUNT'])
self.number_of_pages_section[lang][name] = number_of_pages
return utils.adjust_name_for_index_path_list([_f for _f in [self.site.config['TRANSLATIONS'][lang],

0 comments on commit 168d1e4

Please sign in to comment.