diff options
Diffstat (limited to 'pelicanconf.py')
-rw-r--r-- | pelicanconf.py | 60 |
1 files changed, 21 insertions, 39 deletions
diff --git a/pelicanconf.py b/pelicanconf.py index 658a05d..133d498 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -1,25 +1,23 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- # -from __future__ import unicode_literals - -AUTHOR = u'David Robillard' -SITENAME = u'LV2' +AUTHOR = 'David Robillard' +SITENAME = 'LV2' SITELOGO = 'images/logo.svg' SITELOGO_WIDTH = '13.097287em' SITELOGO_HEIGHT = '12.2625em' -SITEURL = 'https://lv2plug.in' PATH = 'content' TIMEZONE = 'America/Toronto' -DEFAULT_LANG = u'en' -ARTICLE_TRANSLATION_ID = None -PAGE_TRANSLATION_ID = None +DEFAULT_LANG = 'en' THEME = 'themes/lv2' -FAVICON = 'images/favicon.png' +# Feed generation is usually not desired when developing +FEED_ALL_ATOM = None +CATEGORY_FEED_ATOM = None +TRANSLATION_FEED_ATOM = None +AUTHOR_FEED_ATOM = None +AUTHOR_FEED_RSS = None # Blogroll LINKS = () @@ -27,6 +25,8 @@ LINKS = () # Social widget SOCIAL = () +# Menu + MENUITEMS = [('News', '/news.html'), ('Reference', 'http://lv2plug.in/ns/'), ('Developing', '/pages/developing.html'), @@ -39,35 +39,17 @@ DEFAULT_PAGINATION = False SUMMARY_MAX_LENGTH = None DIRECT_TEMPLATES = ['news'] -PAGINATED_DIRECT_TEMPLATES = ['news'] + +PAGINATED_TEMPLATES = { + 'author': 10, + 'category': 10, + 'index': None, + 'news': 10, + 'tag': 10, +} + ARTICLE_PATHS = ['news'] -PAGE_URL = 'pages/{slug}' -PAGE_PATHS = ['pages'] STATIC_PATHS = ['images', 'favicon.ico'] # Uncomment following line if you want document-relative URLs when developing -RELATIVE_URLS = True - - -DISPLAY_TAGS_ON_SIDEBAR = False -DISPLAY_RECENT_POSTS_ON_SIDEBAR = False -DISPLAY_SERIES_ON_SIDEBAR = False -DISPLAY_CATEGORIES_ON_SIDEBAR = False - -PLUGIN_PATHS = ["extra_plugins"] -PLUGINS = [] - -GALLERY_FOLDER = "galleries" -GALLERY_SRC_PATH = "%s%s" % (PATH, "/images/screenshots") -GALLERY_OUTPUT_PATH = "%s%s" % ("output/", GALLERY_FOLDER) -GALLERY_REGENERATE_EXISTING = True -GALLERY_PRESETS = [ - {"name": "thumb", - "actions": [{"type": "fit", "height": 100, "width": 100, "from": (0.5, 0.5)}]}, - {"name": "slider", - "actions" : []}, - {"name": "large", - "actions": [{"type": "resize", "height": 640, "width": 850, "from": (0.5, 0.5)}]}, - {"name": "thumb_greyscale", - "actions": [{"type": "fit", "height": 100, "width": 100, "from": (0.5, 0.5)}, - {"type": "greyscale"} ]}] +#RELATIVE_URLS = True |