Skip to content
Permalink
Browse files
Fix #2126 -- Fix wrong link handler name
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 29, 2015
1 parent cee3b26 commit a2c20843d954b876d1a685f89500ef6116498982
Showing with 9 additions and 4 deletions.
  1. +2 −1 CHANGES.txt
  2. +1 −1 nikola/data/themes/base-jinja/templates/sectionindex.tmpl
  3. +1 −1 nikola/data/themes/base/templates/sectionindex.tmpl
  4. +1 −1 nikola/post.py
  5. +4 −0 sextion_index
@@ -26,7 +26,8 @@ Deprecations
------------

* Post.section_link is now deprecated (Issue #2086). Use
site.link('section_index_link', post.section_slug()) instead.
site.link('section_index', post.section_slug()) instead. (not
'section_index_link', as previously stated in this document)

New in v7.7.1
=============
@@ -11,7 +11,7 @@
{% block content %}
<div class="sectionindex">
<header>
<h2><a href="{{ _link('section_index_link', posts[0].section_slug()) }}">{{ title|e }}</a></h2>
<h2><a href="{{ _link('section_index', posts[0].section_slug()) }}">{{ title|e }}</a></h2>
{% if generate_atom %}
<p class="feedlink"><a href="{{ _link('section_index_atom', posts[0].section_slug()) }}" type="application/atom+xml">{{ messages('Updates') }}</a></p>
{% endif %}
@@ -11,7 +11,7 @@
<%block name="content">
<div class="sectionindex">
<header>
<h2><a href="${_link('section_index_link', posts[0].section_slug())}">${title|h}</a></h2>
<h2><a href="${_link('section_index', posts[0].section_slug())}">${title|h}</a></h2>
% if generate_atom:
<p class="feedlink"><a href="${_link('section_index_atom', posts[0].section_slug())}" type="application/atom+xml">${messages('Updates')}</a></p>
% endif
@@ -747,7 +747,7 @@ def section_color(self, lang=None):
def section_link(self, lang=None):
"""Return the link to the post's section (deprecated)."""
utils.LOGGER.warning("Post.section_link is deprecated. Please use " +
"site.link('section_index_link', post.section_slug()) instead.")
"site.link('section_index', post.section_slug()) instead.")
if lang is None:
lang = nikola.utils.LocaleBorg().current_lang

@@ -0,0 +1,4 @@
CHANGES.txt: site.link('section_index_link', post.section_slug()) instead.
nikola/data/themes/base-jinja/templates/sectionindex.tmpl: <h2><a href="{{ _link('section_index_link', posts[0].section_slug()) }}">{{ title|e }}</a></h2>
nikola/data/themes/base/templates/sectionindex.tmpl: <h2><a href="${_link('section_index_link', posts[0].section_slug())}">${title|h}</a></h2>
nikola/post.py: "site.link('section_index_link', post.section_slug()) instead.")

0 comments on commit a2c2084

Please sign in to comment.