mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
added some doc about STATIC_PAGES
Conflicts: docs/settings.rst
This commit is contained in:
parent
a91f1cab5d
commit
083a8cc172
1 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue