From 397c229db1ae3b25b37e55bfd511fab946e28670 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 2 Apr 2015 20:06:10 +0200 Subject: pelicanconf.py: Adding english and german as languages, adding i18n_subsites plugin, disabling USE_FOLDER_AS_CATEGORY. --- pelicanconf.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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.*)\..*' # 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 -- cgit v1.2.3-70-g09d2