mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Generate {tag}-style links on pages correctly. Fixes #1513
This commit is contained in:
parent
5a8efcd526
commit
49668f711a
4 changed files with 65 additions and 7 deletions
|
|
@ -257,9 +257,9 @@ class Content(object):
|
|||
'limit_msg': ("Other resources were not found "
|
||||
"and their urls not replaced")})
|
||||
elif what == 'category':
|
||||
origin = Category(path, self.settings).url
|
||||
origin = '/'.join((siteurl, Category(path, self.settings).url))
|
||||
elif what == 'tag':
|
||||
origin = Tag(path, self.settings).url
|
||||
origin = '/'.join((siteurl, Tag(path, self.settings).url))
|
||||
|
||||
# keep all other parts, such as query, fragment, etc.
|
||||
parts = list(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue