Skip to content
Permalink
Browse files

Added documentation and a deprecation warning in code. fix #2086.

  • Loading branch information...
felixfontein committed Sep 22, 2015
1 parent 4b3d125 commit 1725a5a093927ed2368ebf822cf895f48f4a7453
Showing with 8 additions and 0 deletions.
  1. +6 −0 CHANGES.txt
  2. +2 −0 nikola/post.py
@@ -20,6 +20,12 @@ Bugfixes
* /robots.txt was never being built (Issue #2098)
* SVG thumbnails (Issue #2094)

Deprecations
------------

* Post.section_link is now deprecated (Issue #2086). Use
site.link('index_section_path', post.section_slug()) instead.

New in v7.7.1
=============

@@ -745,6 +745,8 @@ 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('index_section_path', post.section_slug()) instead.")
if lang is None:
lang = nikola.utils.LocaleBorg().current_lang

0 comments on commit 1725a5a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.