/ ‘patch_pelican.diff’
This commit is contained in:
parent
aad26a9806
commit
831a2f98a5
1 changed files with 10 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
@@ -291,7 +291,9 @@
|
||||
content = parts.get('body')
|
||||
|
||||
metadata = self._parse_metadata(pub.document, source_path)
|
||||
- metadata.setdefault('title', parts.get('title'))
|
||||
+ title = parts.get('title')
|
||||
+ if title:
|
||||
+ metadata.setdefault('title', parts.get('title'))
|
||||
|
||||
return content, metadata
|
||||
Loading…
Reference in a new issue