/ ‘patch/pelican_readers.patch’

This commit is contained in:
Dooho Yi 2020-05-02 19:18:08 +09:00
parent a8116e3b3c
commit ea28da51f8

View file

@ -15,14 +15,3 @@
> 'Document title missing in file %s: '
> 'Ensure exactly one top level section',
> source_path)
292,294c293,298
<
< metadata = self._parse_metadata(pub.document, source_path)
< metadata.setdefault('title', parts.get('title'))
---
> title = parts.get('title')
> if title:
> metadata.setdefault('title', title)
> metadata = self._parse_metadata(pub.document, source_path, nowarning_about_missing_title=False)
> else
> metadata = self._parse_metadata(pub.document, source_path, nowarning_about_missing_title=True)