mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
test the "metadata from filename" feature
This commit is contained in:
parent
3a25f82c4f
commit
dfab8ed5b9
4 changed files with 106 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ def read_file(filename, fmt=None, settings=None):
|
|||
content, metadata = reader.read(filename)
|
||||
|
||||
# eventually filter the content with typogrify if asked so
|
||||
if settings and settings['TYPOGRIFY']:
|
||||
if settings and settings.get('TYPOGRIFY'):
|
||||
from typogrify.filters import typogrify
|
||||
content = typogrify(content)
|
||||
metadata['title'] = typogrify(metadata['title'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue