Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3b695e5

Browse files
committedMar 18, 2018
MAke tests pass
1 parent 5e84a44 commit 3b695e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nikola/plugins/compile/markdown/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def create_post(self, path, **kw):
152152

153153
def read_metadata(self, post, lang=None):
154154
"""Read the metadata from a post, and return a metadata dict."""
155-
lang = lang or self.site.config['DEFAULT_LANGUAGE']
155+
lang = lang or self.site.config.get('DEFAULT_LANGUAGE', 'en')
156156
if not self.supports_metadata:
157157
return {}
158158
if Markdown is None:

0 commit comments

Comments
 (0)
Please sign in to comment.