Skip to content

Commit

Permalink
Using the new feature for simplifying link creation logic for indexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Dec 9, 2016
1 parent 1f4f5ce commit 00acea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/task/taxonomies.py
Expand Up @@ -230,11 +230,11 @@ def _generate_classification_page_as_index(self, taxonomy, classification, filte

def page_link(i, displayed_i, num_pages, force_addition, extension=None):
feed = "{}_atom" if extension == ".atom" else "{}"
return utils.adjust_name_for_index_link(self.site.link(feed.format(kind), classification, lang), i, displayed_i, lang, self.site, force_addition, extension)
return self.site.link(feed.format(kind), classification, lang, page=i)

def page_path(i, displayed_i, num_pages, force_addition, extension=None):
feed = "{}_atom" if extension == ".atom" else "{}"
return utils.adjust_name_for_index_path(self.site.path(feed.format(kind), classification, lang), i, displayed_i, lang, self.site, force_addition, extension)
return self.site.path(feed.format(kind), classification, lang, page=i)

context = copy(context)
if "pagekind" not in context:
Expand Down

0 comments on commit 00acea8

Please sign in to comment.