mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Make sure Content uses URLWrappers
This commit is contained in:
parent
e35ca1d6ff
commit
3ea4542015
5 changed files with 47 additions and 18 deletions
|
|
@ -537,6 +537,10 @@ def find_empty_alt(content, path):
|
|||
def default_metadata(settings=None, process=None):
|
||||
metadata = {}
|
||||
if settings:
|
||||
for name, value in dict(settings.get('DEFAULT_METADATA', {})).items():
|
||||
if process:
|
||||
value = process(name, value)
|
||||
metadata[name] = value
|
||||
if 'DEFAULT_CATEGORY' in settings:
|
||||
value = settings['DEFAULT_CATEGORY']
|
||||
if process:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue