mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add AUTHOR_SUBSTITUTIONS
This commit is contained in:
parent
648165b839
commit
fcd4f9aa0d
5 changed files with 44 additions and 1 deletions
|
|
@ -136,4 +136,9 @@ class Tag(URLWrapper):
|
|||
|
||||
|
||||
class Author(URLWrapper):
|
||||
pass
|
||||
@property
|
||||
def slug(self):
|
||||
if self._slug is None:
|
||||
self._slug = slugify(self.name,
|
||||
self.settings.get('AUTHOR_SUBSTITUTIONS', ()))
|
||||
return self._slug
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue