mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add categories and tags to the replacement mechanism.
This commit is contained in:
parent
2a599b8646
commit
e2ca6d7608
3 changed files with 32 additions and 0 deletions
|
|
@ -216,6 +216,10 @@ class Content(object):
|
|||
else:
|
||||
logger.warning("Unable to find {fn}, skipping url"
|
||||
" replacement".format(fn=value))
|
||||
elif what == 'category':
|
||||
origin = Category(value, self.settings).url
|
||||
elif what == 'tag':
|
||||
origin = Tag(value, self.settings).url
|
||||
|
||||
return ''.join((m.group('markup'), m.group('quote'), origin,
|
||||
m.group('quote')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue