Skip to content
Permalink
Browse files
Correctly handle meta tags with no name while extracting metadata
  • Loading branch information
punchagan committed Jun 12, 2017
1 parent 50dbc9d commit 37e5f8332b1f3f290cf2fd3152a3b7169dc7bc7f
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/compile/html.py
@@ -103,7 +103,7 @@ def read_metadata(self, post, file_metadata_regexp=None, unslugify_titles=False,
metadata['title'] = title_tag.text
meta_tags = doc.findall('*//meta')
for tag in meta_tags:
k = tag.get('name').lower()
k = tag.get('name', '').lower()
if not k:
continue
elif k == 'keywords':

0 comments on commit 37e5f83

Please sign in to comment.