aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-04-02 19:36:29 +0200
committerDavid Runge <dave@sleepmap.de>2015-04-02 19:36:29 +0200
commit6308e55b053044985835f4d4f87321b39e50bf4c (patch)
tree59e00daf3cebb89855a9ef0a15657f455b04e79f
parent7ef3ffdd90f216ca6aa605bb8913b5efdfc2e5d3 (diff)
downloadsleepmap-6308e55b053044985835f4d4f87321b39e50bf4c.tar.gz
sleepmap-6308e55b053044985835f4d4f87321b39e50bf4c.tar.bz2
sleepmap-6308e55b053044985835f4d4f87321b39e50bf4c.tar.xz
sleepmap-6308e55b053044985835f4d4f87321b39e50bf4c.zip
pelicanconf.py: Sorting configuration. Adding PATH_METADATA for pages to be top-level.
-rw-r--r--pelicanconf.py64
1 files changed, 26 insertions, 38 deletions
diff --git a/pelicanconf.py b/pelicanconf.py
index 7e9332a..4ee7234 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -2,50 +2,38 @@
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
-
-
-AUTHOR = 'David Runge'
ARTICLE_PATHS = ['blog']
ARTICLE_SAVE_AS = '{date:%Y}/{slug}.html'
ARTICLE_URL = '{date:%Y}/{slug}.html'
-SITENAME = 'Sleep Map'
-SITEURL = 'http://sleepmap.de'
-
-
-PATH = 'content'
-
-TIMEZONE = 'Europe/Berlin'
-
-DEFAULT_LANG = 'en'
-
-# Feed generation is usually not desired when developing
-FEED_ALL_ATOM = None
-CATEGORY_FEED_ATOM = None
-TRANSLATION_FEED_ATOM = None
+AUTHOR = 'David Runge'
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
-
-# Blogroll
-LINKS = (('Arch Linux', 'https://archlinux.org'),
- ('NetworkSEC', 'http://networksec.de'),
- ('Freakquenzy Records e.V.', 'http://frqrec.de'),
- ('Waldeck-Freakquenz', 'http://waldeck-freakquenz.de'),
- )
-
-# Social widget
-SOCIAL = (('Twitter', 'https://twitter.com/dvzrv'),
- ('Github', 'https://github.com/dvzrv'),
- )
-
+CATEGORY_FEED_ATOM = None
+DEFAULT_LANG = 'en'
DEFAULT_PAGINATION = 30
-
-THEME = 'sleepmap-theme'
+FEED_ALL_ATOM = None
+# Blogroll
+LINKS = (
+ ('Arch Linux', 'https://archlinux.org'),
+ ('NetworkSEC', 'http://networksec.de'),
+ ('Freakquenzy Records e.V.', 'http://frqrec.de'),
+ ('Waldeck-Freakquenz', 'http://waldeck-freakquenz.de'),
+)
+PATH = 'content'
+PATH_METADATA = 'pages/(?P<path>.*)\..*' # Make pages top-level (remove /pages/ from each URL)
+# Plugins
+PLUGIN_PATHS = ['../pelican-plugins/']
+PLUGINS = ['pelican-page-hierarchy']
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
-
+SITENAME = 'Sleep Map'
+SITEURL = 'http://sleepmap.de'
+# Social widget
+SOCIAL = (
+ ('Twitter', 'https://twitter.com/dvzrv'),
+ ('Github', 'https://github.com/dvzrv'),
+)
STATIC_PATHS = [ 'downloads', 'icons', 'images', 'music' ]
-
-USE_FOLDER_AS_CATEGORY = False
-
-PLUGIN_PATHS = ['../pelican/plugins/']
-PLUGINS = ['pelican-page-hierarchy']
+THEME = 'sleepmap-theme'
+TIMEZONE = 'Europe/Berlin'
+TRANSLATION_FEED_ATOM = None