Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Deprecating Post.section_link.
  • Loading branch information
felixfontein committed Sep 22, 2015
1 parent e051a1d commit 4b3d125
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/sectionindex.tmpl
Expand Up @@ -11,7 +11,7 @@
{% block content %}
<div class="sectionindex">
<header>
<h2><a href="{{ posts[0].section_link() }}">{{ title|e }}</a></h2>
<h2><a href="{{ _link('index_section_path', 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 %}
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/sectionindex.tmpl
Expand Up @@ -11,7 +11,7 @@
<%block name="content">
<div class="sectionindex">
<header>
<h2><a href="${posts[0].section_link()}">${title|h}</a></h2>
<h2><a href="${_link('index_section_path', 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
Expand Down
2 changes: 1 addition & 1 deletion nikola/post.py
Expand Up @@ -744,7 +744,7 @@ def section_color(self, lang=None):
return utils.colorize_str_from_base_color(slug, base)

def section_link(self, lang=None):
"""Return the link to the post's section."""
"""Return the link to the post's section (deprecated)."""
if lang is None:
lang = nikola.utils.LocaleBorg().current_lang

Expand Down

0 comments on commit 4b3d125

Please sign in to comment.