Skip to content

Commit

Permalink
merged master
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Mar 7, 2016
2 parents a94dec2 + 680450c commit 75f1a95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -17,6 +17,7 @@ Bugfixes
can be re-enabled with ``-v`` option (Issue #2268)
* Fix a format string in ``nikola check`` (Issue #2267)
* Don't crash wordpress importer when posts are "empty" (Issue #2263)
* 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
2 changes: 1 addition & 1 deletion requirements-tests.txt
Expand Up @@ -4,5 +4,5 @@ coverage==4.0.3
pytest==2.9.0
pytest-cov==2.2.1
freezegun==0.3.6
python-coveralls==2.6.0
python-coveralls==2.7.0
colorama>=0.3.4

0 comments on commit 75f1a95

Please sign in to comment.