File tree 3 files changed +4
-3
lines changed
nikola/plugins/task/sitemap
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Bugfixes
17
17
can be re-enabled with ``-v `` option (Issue #2268)
18
18
* Fix a format string in ``nikola check `` (Issue #2267)
19
19
* Don't crash wordpress importer when posts are "empty" (Issue #2263)
20
+ * Don't put untranslated and nonexistant posts in sitemap (Issue #2289)
20
21
21
22
New in v7.7.6
22
23
=============
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def scan_locs():
158
158
continue
159
159
alternates = []
160
160
if post :
161
- for lang in kw [ 'translations' ] :
161
+ for lang in post . translated_to :
162
162
alt_url = post .permalink (lang = lang , absolute = True )
163
163
if encodelink (loc ) == alt_url :
164
164
continue
@@ -215,7 +215,7 @@ def scan_locs():
215
215
loc = urljoin (base_url , base_path + path )
216
216
alternates = []
217
217
if post :
218
- for lang in kw [ 'translations' ] :
218
+ for lang in post . translated_to :
219
219
alt_url = post .permalink (lang = lang , absolute = True )
220
220
if encodelink (loc ) == alt_url :
221
221
continue
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ coverage==4.0.3
4
4
pytest==2.9.0
5
5
pytest-cov==2.2.1
6
6
freezegun==0.3.6
7
- python-coveralls==2.6 .0
7
+ python-coveralls==2.7 .0
8
8
colorama>=0.3.4
You can’t perform that action at this time.
0 commit comments