blog/pelicanconf.py
2015-10-12 17:19:51 +02:00

95 lines
2.6 KiB
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
AUTHOR = 'marvin'
SITENAME = 'xsteadfastx'
SITEURL = ''
SITELOGO = SITEURL + '/theme/img/avatar.png'
FAVICON = SITEURL + '/theme/img/favicon.png'
TIMEZONE = "Europe/Berlin"
DESCRIPTION = "the cats are not what they seem"
# can be useful in development, but set to False when you're ready to publish
RELATIVE_URLS = True
GITHUB_URL = 'http://github.com/xsteadfastx/'
TWITTER_NAME = 'xsteadfastx'
FLATTR_USER = 'xsteadfastx'
PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True
LOCALE = "C"
DEFAULT_PAGINATION = False
DEFAULT_DATE = (2012, 3, 2, 14, 1, 1)
FEED_DOMAIN = SITEURL
FEED_MAX_ITEMS = 100
FEED_ALL_ATOM = 'feeds/all.atom.xml'
FEED_ATOM = 'feed/index.html'
# CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
# global metadata to all the contents
# DEFAULT_METADATA = (('yeah', 'it is'),)
# path-specific metadata
EXTRA_PATH_METADATA = {
# 'extra/robots.txt': {'path': 'robots.txt'},
'extra/CNAME': {'path': 'CNAME'},
}
# static paths will be copied without parsing their contents
STATIC_PATHS = [
'images',
# 'extra/robots.txt',
'extra/CNAME',
# 'code',
# 'notebooks'
]
# custom page generated with a jinja2 template
# TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
# code blocks with line numbers
PYGMENTS_RST_OPTIONS = {'linenos': 'table'}
# foobar will not be used, because it's not in caps. All configuration keys
# have to be in caps
# foobar = "barbaz"
THEME = 'themes/flex'
OUTPUT_PATH = 'output'
PATH = 'content'
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
# plugins
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['liquid_tags.youtube', 'liquid_tags.vimeo', 'liquid_tags.notebook',
'liquid_tags.flickr', 'liquid_tags.soundcloud', 'liquid_tags.giphy',
'liquid_tags.audio', 'liquid_tags.gram', 'tipue_search']
NOTEBOOK_DIR = 'notebooks'
EXTRA_HEADER = open('_nb_header.html').read().replace(
'highlight', 'highlight-ipynb')
CACHE_CONTENT = True
LOAD_CONTENT_CACHE = True
# tags
TAG_URL = 'tag/{slug}.html'
TAG_SAVE_AS = 'tag/{slug}.html'
# api keys
FLICKR_API_KEY = '2207902126a225122e46533e82b6a947'
GIPHY_API_KEY = 'dc6zaTOxFJmzC'
DEFAULT_PAGINATION = 5
COPYRIGHT_YEAR = 2015
CC_LICENSE = {'name': 'Creative Commons Attribution-ShareAlike',
'version': '4.0', 'slug': 'by-sa'}
MAIN_MENU = False
SOCIAL = (('twitter', 'https://twitter.com/xsteadfastx'),
('github', 'https://github.com/xsteadfastx'),
('rss', SITEURL + '/feed/'),)