mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add per page templates. Closes #376
Also set up helper classes in test_generators.py for cleaner tests
This commit is contained in:
parent
4c060030ae
commit
dff5b3589b
8 changed files with 128 additions and 15 deletions
11
docs/faq.rst
11
docs/faq.rst
|
|
@ -49,3 +49,14 @@ install it. You can do so by typing::
|
|||
In case you don't have pip installed, consider installing it via::
|
||||
|
||||
$ (sudo) easy_install pip
|
||||
|
||||
How do I assign custom templates on a per page basis?
|
||||
=====================================================
|
||||
|
||||
It's as simple as adding an extra line of metadata to any pages or articles you
|
||||
want to have it's own template.
|
||||
|
||||
:template: template_name
|
||||
|
||||
Then just make sure to have the template installed in to your theme as
|
||||
``template_name.html``.
|
||||
Loading…
Add table
Add a link
Reference in a new issue