mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
add support for relative cross-site links
This commit is contained in:
parent
a6dd3178b1
commit
a0504aeabe
7 changed files with 26 additions and 19 deletions
|
|
@ -134,7 +134,8 @@ class Pelican(object):
|
|||
"""Run the generators and return"""
|
||||
|
||||
context = self.settings.copy()
|
||||
filenames = {} # share the dict between all the generators
|
||||
context['filenames'] = {} # share the dict between all the generators
|
||||
context['localsiteurl'] = self.settings.get('SITEURL') # share
|
||||
generators = [
|
||||
cls(
|
||||
context,
|
||||
|
|
@ -143,8 +144,6 @@ class Pelican(object):
|
|||
self.theme,
|
||||
self.output_path,
|
||||
self.markup,
|
||||
self.delete_outputdir,
|
||||
filenames=filenames
|
||||
) for cls in self.get_generator_classes()
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue