Skip to content
Permalink
Browse files

Deprecating Post.section_link.

  • Loading branch information...
felixfontein committed Sep 22, 2015
1 parent e051a1d commit 4b3d125750371739f633b43cce51a3952d0e587e
@@ -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 %}
@@ -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
@@ -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

0 comments on commit 4b3d125

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