mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix typogrifying objects without title
This fixes my use case where I use `readers.read_file` from within plugin to load something that is neither a page nor an article.
This commit is contained in:
parent
d9605d005d
commit
12c72d3e19
1 changed files with 2 additions and 0 deletions
|
|
@ -545,6 +545,8 @@ class Readers(FileStampDataCacher):
|
|||
|
||||
if content:
|
||||
content = typogrify_wrapper(content)
|
||||
|
||||
if 'title' in metadata:
|
||||
metadata['title'] = typogrify_wrapper(metadata['title'])
|
||||
|
||||
if 'summary' in metadata:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue