Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2290 from getnikola/fix-2289
Fix #2289
  • Loading branch information
ralsina committed Mar 7, 2016
2 parents 8ee888b + 87e741b commit 94ff0ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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
=============
Expand Down
4 changes: 2 additions & 2 deletions nikola/plugins/task/sitemap/__init__.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 94ff0ad

Please sign in to comment.