aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-04-02 20:06:10 +0200
committerDavid Runge <dave@sleepmap.de>2015-04-02 20:06:10 +0200
commit397c229db1ae3b25b37e55bfd511fab946e28670 (patch)
treecef6a44adbf5f92e236aff9c367aec70f97cb796
parent6308e55b053044985835f4d4f87321b39e50bf4c (diff)
downloadsleepmap-397c229db1ae3b25b37e55bfd511fab946e28670.tar.gz
sleepmap-397c229db1ae3b25b37e55bfd511fab946e28670.tar.bz2
sleepmap-397c229db1ae3b25b37e55bfd511fab946e28670.tar.xz
sleepmap-397c229db1ae3b25b37e55bfd511fab946e28670.zip
pelicanconf.py: Adding english and german as languages, adding i18n_subsites plugin, disabling USE_FOLDER_AS_CATEGORY.
-rw-r--r--pelicanconf.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pelicanconf.py b/pelicanconf.py
index 4ee7234..4a6e8bd 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -12,6 +12,15 @@ CATEGORY_FEED_ATOM = None
DEFAULT_LANG = 'en'
DEFAULT_PAGINATION = 30
FEED_ALL_ATOM = None
+# mapping: language_code -> settings_overrides_dict
+I18N_SUBSITES = {
+ 'en': {
+ 'SITENAME': 'Sleep Map',
+ },
+ 'de': {
+ 'SITENAME': 'Sleep Map',
+ }
+}
# Blogroll
LINKS = (
('Arch Linux', 'https://archlinux.org'),
@@ -23,7 +32,7 @@ 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']
+PLUGINS = [ 'pelican-page-hierarchy', 'i18n_subsites' ]
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
SITENAME = 'Sleep Map'
@@ -37,3 +46,4 @@ STATIC_PATHS = [ 'downloads', 'icons', 'images', 'music' ]
THEME = 'sleepmap-theme'
TIMEZONE = 'Europe/Berlin'
TRANSLATION_FEED_ATOM = None
+USE_FOLDER_AS_CATEGORY = False