mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
update typogrify support
This commit is contained in:
parent
d5f1747993
commit
22c88e4de3
1 changed files with 3 additions and 3 deletions
|
|
@ -185,8 +185,8 @@ def read_file(filename, fmt=None, settings=None):
|
||||||
|
|
||||||
# eventually filter the content with typogrify if asked so
|
# eventually filter the content with typogrify if asked so
|
||||||
if settings and settings['TYPOGRIFY']:
|
if settings and settings['TYPOGRIFY']:
|
||||||
from typogrify import Typogrify
|
from typogrify.filters import typogrify
|
||||||
content = Typogrify.typogrify(content)
|
content = typogrify(content)
|
||||||
metadata['title'] = Typogrify.typogrify(metadata['title'])
|
metadata['title'] = typogrify(metadata['title'])
|
||||||
|
|
||||||
return content, metadata
|
return content, metadata
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue