2014-01-28 15:05:04 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2015-04-15 09:21:48 +02:00
|
|
|
AUTHOR = 'marvin'
|
2015-04-13 16:16:30 +02:00
|
|
|
SITENAME = 'xsteadfastx'
|
2014-09-24 16:42:16 +02:00
|
|
|
SITEURL = ''
|
2015-10-12 14:58:37 +02:00
|
|
|
SITELOGO = SITEURL + '/theme/img/avatar.png'
|
|
|
|
FAVICON = SITEURL + '/theme/img/favicon.png'
|
2014-01-28 15:05:04 +01:00
|
|
|
TIMEZONE = "Europe/Berlin"
|
2015-04-13 16:16:30 +02:00
|
|
|
DESCRIPTION = "the cats are not what they seem"
|
2014-01-28 15:05:04 +01:00
|
|
|
|
|
|
|
# can be useful in development, but set to False when you're ready to publish
|
|
|
|
RELATIVE_URLS = True
|
|
|
|
|
|
|
|
GITHUB_URL = 'http://github.com/xsteadfastx/'
|
2014-04-03 10:53:29 +02:00
|
|
|
TWITTER_NAME = 'xsteadfastx'
|
2015-04-14 16:46:49 +02:00
|
|
|
FLATTR_USER = 'xsteadfastx'
|
2014-01-28 15:05:04 +01:00
|
|
|
PDF_GENERATOR = False
|
|
|
|
REVERSE_CATEGORY_ORDER = True
|
|
|
|
LOCALE = "C"
|
2015-04-19 12:18:39 +02:00
|
|
|
DEFAULT_PAGINATION = False
|
2014-01-28 15:05:04 +01:00
|
|
|
DEFAULT_DATE = (2012, 3, 2, 14, 1, 1)
|
|
|
|
|
2015-04-14 10:51:34 +02:00
|
|
|
FEED_DOMAIN = SITEURL
|
2015-04-14 12:37:06 +02:00
|
|
|
FEED_MAX_ITEMS = 100
|
2015-04-14 10:51:34 +02:00
|
|
|
FEED_ALL_ATOM = 'feeds/all.atom.xml'
|
|
|
|
FEED_ATOM = 'feed/index.html'
|
2015-10-12 14:58:37 +02:00
|
|
|
# CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
|
2014-01-28 15:05:04 +01:00
|
|
|
|
|
|
|
# global metadata to all the contents
|
2015-10-12 14:58:37 +02:00
|
|
|
# DEFAULT_METADATA = (('yeah', 'it is'),)
|
2014-01-28 15:05:04 +01:00
|
|
|
|
|
|
|
# path-specific metadata
|
|
|
|
EXTRA_PATH_METADATA = {
|
2015-10-12 14:58:37 +02:00
|
|
|
# 'extra/robots.txt': {'path': 'robots.txt'},
|
2014-01-28 22:43:40 +01:00
|
|
|
'extra/CNAME': {'path': 'CNAME'},
|
2014-01-28 15:05:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# static paths will be copied without parsing their contents
|
|
|
|
STATIC_PATHS = [
|
2014-01-30 13:55:37 +01:00
|
|
|
'images',
|
2015-10-12 14:58:37 +02:00
|
|
|
# 'extra/robots.txt',
|
2014-01-28 22:43:40 +01:00
|
|
|
'extra/CNAME',
|
2015-10-12 14:58:37 +02:00
|
|
|
# 'code',
|
|
|
|
# 'notebooks'
|
2014-01-28 15:05:04 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
# custom page generated with a jinja2 template
|
2015-10-12 14:58:37 +02:00
|
|
|
# TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
|
2014-01-28 15:05:04 +01:00
|
|
|
|
|
|
|
# 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
|
2015-10-12 14:58:37 +02:00
|
|
|
# foobar = "barbaz"
|
2014-01-28 15:05:04 +01:00
|
|
|
|
2015-10-12 14:58:37 +02:00
|
|
|
THEME = 'themes/flex'
|
2014-01-28 15:05:04 +01:00
|
|
|
OUTPUT_PATH = 'output'
|
|
|
|
PATH = 'content'
|
|
|
|
|
2015-04-14 08:26:38 +02:00
|
|
|
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
|
|
|
|
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
|
2014-04-03 10:53:29 +02:00
|
|
|
|
|
|
|
# plugins
|
2014-11-05 16:49:15 +01:00
|
|
|
PLUGIN_PATHS = ['pelican-plugins']
|
2015-08-25 17:13:01 +02:00
|
|
|
PLUGINS = ['liquid_tags.youtube', 'liquid_tags.vimeo', 'liquid_tags.notebook',
|
2015-09-17 14:53:15 +02:00
|
|
|
'liquid_tags.flickr', 'liquid_tags.soundcloud', 'liquid_tags.giphy',
|
2015-10-05 15:46:31 +02:00
|
|
|
'liquid_tags.audio', 'liquid_tags.gram', 'tipue_search']
|
2014-04-03 10:53:29 +02:00
|
|
|
|
2015-04-14 17:20:11 +02:00
|
|
|
NOTEBOOK_DIR = 'notebooks'
|
2015-08-22 21:41:55 +02:00
|
|
|
EXTRA_HEADER = open('_nb_header.html').read().replace(
|
2015-04-22 12:20:49 +02:00
|
|
|
'highlight', 'highlight-ipynb')
|
2014-11-18 16:10:56 +01:00
|
|
|
|
2015-06-16 11:03:00 +02:00
|
|
|
CACHE_CONTENT = True
|
2015-04-19 12:18:39 +02:00
|
|
|
LOAD_CONTENT_CACHE = True
|
|
|
|
|
2015-10-12 14:58:37 +02:00
|
|
|
# tags
|
|
|
|
TAG_URL = 'tag/{slug}.html'
|
|
|
|
TAG_SAVE_AS = 'tag/{slug}.html'
|
2015-09-10 15:14:56 +02:00
|
|
|
|
2015-09-17 14:53:15 +02:00
|
|
|
# api keys
|
2015-09-10 15:14:56 +02:00
|
|
|
FLICKR_API_KEY = '2207902126a225122e46533e82b6a947'
|
2015-09-17 14:53:15 +02:00
|
|
|
GIPHY_API_KEY = 'dc6zaTOxFJmzC'
|
2015-10-12 14:58:37 +02:00
|
|
|
|
|
|
|
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/'),)
|
2015-11-06 10:51:53 +01:00
|
|
|
LINKS = (('Archive', SITEURL + '/archives.html'),)
|