mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge 4fbf4b2638 into 2a53934834
This commit is contained in:
commit
235aee6167
1 changed files with 7 additions and 5 deletions
|
|
@ -274,12 +274,14 @@ class HTMLReader(Reader):
|
|||
return result + '>'
|
||||
|
||||
def _handle_meta_tag(self, attrs):
|
||||
name = self._attr_value(attrs, 'name').lower()
|
||||
contents = self._attr_value(attrs, 'contents', '')
|
||||
name = self._attr_value(attrs, 'name')
|
||||
if name:
|
||||
name = name.lower()
|
||||
contents = self._attr_value(attrs, 'contents', '')
|
||||
|
||||
if name == 'keywords':
|
||||
name = 'tags'
|
||||
self.metadata[name] = contents
|
||||
if name == 'keywords':
|
||||
name = 'tags'
|
||||
self.metadata[name] = contents
|
||||
|
||||
@classmethod
|
||||
def _attr_value(cls, attrs, name, default=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue