From 083a8cc172c3b0832d2b2afe2b217e4d593eb7cf Mon Sep 17 00:00:00 2001 From: Tarek Ziade Date: Sun, 18 Mar 2012 09:59:12 +0100 Subject: [PATCH] added some doc about STATIC_PAGES Conflicts: docs/settings.rst --- docs/settings.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/settings.rst b/docs/settings.rst index 1e3704d2..749e0431 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -92,6 +92,9 @@ 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`. `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 @@ -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 + +.. _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 =============