Skip to content
Permalink
Browse files
Merge pull request #2290 from getnikola/fix-2289
Fix #2289
  • Loading branch information
ralsina committed Mar 7, 2016
2 parents 8ee888b + 87e741b commit 94ff0adc12c4c2c503cd1abf197c716f37db2055
Showing 2 changed files with 3 additions and 2 deletions.
@@ -16,6 +16,7 @@ Bugfixes
* Don’t display “Good link” messages in ``nikola check -l`` by default,
can be re-enabled with ``-v`` option (Issue #2268)
* Fix a format string in ``nikola check`` (Issue #2267)
* Don't put untranslated and nonexistant posts in sitemap (Issue #2289)

New in v7.7.6
=============
@@ -158,7 +158,7 @@ def scan_locs():
continue
alternates = []
if post:
for lang in kw['translations']:
for lang in post.translated_to:
alt_url = post.permalink(lang=lang, absolute=True)
if encodelink(loc) == alt_url:
continue
@@ -215,7 +215,7 @@ def scan_locs():
loc = urljoin(base_url, base_path + path)
alternates = []
if post:
for lang in kw['translations']:
for lang in post.translated_to:
alt_url = post.permalink(lang=lang, absolute=True)
if encodelink(loc) == alt_url:
continue

0 comments on commit 94ff0ad

Please sign in to comment.