mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
rename STATIC_PAGES to TEMPLATE_PAGES
This commit is contained in:
parent
083a8cc172
commit
e0e1b3eecf
4 changed files with 19 additions and 21 deletions
|
|
@ -92,9 +92,8 @@ Setting name (default value) What doe
|
|||
will not be generated with properly-formed URLs. You should
|
||||
include ``http://`` and your domain, with no trailing
|
||||
slash at the end. Example: ``SITEURL = 'http://mydomain.com'``
|
||||
`STATIC_PAGES` (``None``) A mapping containing static pages that will
|
||||
be rendered with the blog entries. See
|
||||
:ref:`static_pages`.
|
||||
`TEMPLATE_PAGES` (``None``) A mapping containing template pages that will be rendered with
|
||||
the blog entries. See :ref:`template_pages`.
|
||||
`STATIC_PATHS` (``['images']``) The static paths you want to have accessible
|
||||
on the output path "static". By default,
|
||||
Pelican will copy the 'images' folder to the
|
||||
|
|
@ -270,24 +269,22 @@ can get a list of available locales via the ``locale -a`` command; see manpage
|
|||
.. _locale(1): http://linux.die.net/man/1/locale
|
||||
|
||||
|
||||
.. _static_pages:
|
||||
.. _template_pages:
|
||||
|
||||
Static pages
|
||||
============
|
||||
Template pages
|
||||
==============
|
||||
|
||||
If you want to generate static pages besides your blog entries, you can point
|
||||
any HTML or HTML template file with a path pointing to the file and the
|
||||
URL it will match.
|
||||
If you want to generate custom pages besides your blog entries, you can point
|
||||
any Jinja2 template file with a path pointing to the file and the URL it will
|
||||
match.
|
||||
|
||||
For instance, if you have a blog with four static pages, for a list of
|
||||
books, your resume and a contact page, you could have::
|
||||
For instance, if you have a blog with four static pages, for a list of books,
|
||||
your resume and a contact page, you could have::
|
||||
|
||||
STATIC_PAGES = {'/books.html': 'static/books.html',
|
||||
TEMPLATE_PAGES = {'/books.html': 'static/books.html',
|
||||
'/resume.html': 'static/resume.html',
|
||||
'/contact.html': 'static/contact.html'}
|
||||
|
||||
|
||||
|
||||
Feed settings
|
||||
=============
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue