added some doc about STATIC_PAGES

Conflicts:
	docs/settings.rst
This commit is contained in:
Tarek Ziade 2012-03-18 09:59:12 +01:00 committed by Bruno Binet
commit 083a8cc172

View file

@ -92,6 +92,9 @@ Setting name (default value) What doe
will not be generated with properly-formed URLs. You should will not be generated with properly-formed URLs. You should
include ``http://`` and your domain, with no trailing include ``http://`` and your domain, with no trailing
slash at the end. Example: ``SITEURL = 'http://mydomain.com'`` 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`.
`STATIC_PATHS` (``['images']``) The static paths you want to have accessible `STATIC_PATHS` (``['images']``) The static paths you want to have accessible
on the output path "static". By default, on the output path "static". By default,
Pelican will copy the 'images' folder to the Pelican will copy the 'images' folder to the
@ -266,6 +269,25 @@ can get a list of available locales via the ``locale -a`` command; see manpage
.. _locale(1): http://linux.die.net/man/1/locale .. _locale(1): http://linux.die.net/man/1/locale
.. _static_pages:
Static 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.
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',
'/resume.html': 'static/resume.html',
'/contact.html': 'static/contact.html'}
Feed settings Feed settings
============= =============