Skip to content

Commit

Permalink
fix #1270
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Aug 19, 2014
1 parent 6fcb587 commit e3405de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -18,6 +18,7 @@ Features
Bugfixes
--------

* Make site.posts_per_file cover all languages (Issue #1270)
* rebuild posts when metadata changes (Issue #1319)
* Allow + in slugs (Issue #1344)
* fix error message when tags that are too similar are found (Issues #1343, #1344)
Expand Down
5 changes: 3 additions & 2 deletions nikola/nikola.py
Expand Up @@ -1231,8 +1231,9 @@ def scan_posts(self, really=False):
self.posts_per_category[post.meta('category')].append(post)
else:
self.pages.append(post)
self.post_per_file[post.destination_path(lang=lang)] = post
self.post_per_file[post.destination_path(lang=lang, extension=post.source_ext())] = post
for lang in self.config["TRANSLATIONS"].keys():
self.post_per_file[post.destination_path(lang=lang)] = post
self.post_per_file[post.destination_path(lang=lang, extension=post.source_ext())] = post

# Sort everything.
self.timeline.sort(key=lambda p: p.date)
Expand Down

0 comments on commit e3405de

Please sign in to comment.