mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add new setting EXTRA_TEMPLATES_PATHS
This setting allow to use template which are not in the theme. Should help to build more generic themes around the content.
This commit is contained in:
parent
dfd3fca92b
commit
c462237b9d
3 changed files with 10 additions and 2 deletions
|
|
@ -36,8 +36,11 @@ class Generator(object):
|
|||
|
||||
# templates cache
|
||||
self._templates = {}
|
||||
self._templates_path = os.path.expanduser(
|
||||
os.path.join(self.theme, 'templates'))
|
||||
self._templates_path = []
|
||||
self._templates_path.append(os.path.expanduser(
|
||||
os.path.join(self.theme, 'templates')))
|
||||
self._templates_path += self.settings.get('EXTRA_TEMPLATES_PATHS', [])
|
||||
|
||||
|
||||
theme_path = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue