mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #2758 from MinchinWeb/settings-pathlib-2
This commit is contained in:
commit
e14f20bb99
6 changed files with 75 additions and 44 deletions
|
|
@ -221,7 +221,7 @@ class Content:
|
|||
if not klass:
|
||||
klass = self.__class__.__name__
|
||||
fq_key = ('{}_{}'.format(klass, key)).upper()
|
||||
return self.settings[fq_key].format(**self.url_format)
|
||||
return str(self.settings[fq_key]).format(**self.url_format)
|
||||
|
||||
def get_url_setting(self, key):
|
||||
if hasattr(self, 'override_' + key):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue