forked from github/pelican
Add THEME_TEMPLATE_OVERRIDES. Refs 2021
Allow for overriding individual templates from the theme by configuring the Jinja2 `Environment` loader to search for templates in the `THEME_TEMPLATES_OVERRIDES` path before the theme's `templates/` directory.
This commit is contained in:
parent
db027929b5
commit
50af2ed45d
8 changed files with 134 additions and 17 deletions
4
pelican/tests/theme_overrides/level2/article.html
Normal file
4
pelican/tests/theme_overrides/level2/article.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!--
|
||||
This file is only here to test the `THEME_TEMPLATES_OVERRIDES` configuration
|
||||
setting.
|
||||
-->
|
||||
Loading…
Add table
Add a link
Reference in a new issue