diff options
-rw-r--r-- | pelicanconf.py | 12 |
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 |