blog/pelicanconf.py

112 lines
2.8 KiB
Python
Raw Normal View History

2014-01-28 15:05:04 +01:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
2019-06-05 10:09:48 +02:00
2016-03-07 16:18:59 +01:00
from datetime import datetime
2014-01-28 15:05:04 +01:00
2019-01-04 14:17:27 +01:00
AUTHOR = "marvin"
SITENAME = "xsteadfastx"
SITEURL = ""
2014-01-28 15:05:04 +01:00
TIMEZONE = "Europe/Berlin"
# can be useful in development, but set to False when you're ready to publish
RELATIVE_URLS = True
2019-01-04 14:17:27 +01:00
FLATTR_USER = "xsteadfastx"
2014-01-28 15:05:04 +01:00
PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True
LOCALE = "C"
DEFAULT_PAGINATION = False
2014-01-28 15:05:04 +01:00
DEFAULT_DATE = (2012, 3, 2, 14, 1, 1)
FEED_DOMAIN = SITEURL
FEED_MAX_ITEMS = 100
2019-01-04 14:17:27 +01:00
# FEED_ALL_ATOM = 'feeds/all.atom.xml'
FEED_ATOM = "feed/index.html"
# CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
2016-12-15 13:56:15 +01:00
RSS_FEED_SUMMARY_ONLY = False
2014-01-28 15:05:04 +01:00
# global metadata to all the contents
# DEFAULT_METADATA = (('yeah', 'it is'),)
2014-01-28 15:05:04 +01:00
# path-specific metadata
EXTRA_PATH_METADATA = {
# 'extra/robots.txt': {'path': 'robots.txt'},
2018-01-10 10:58:35 +01:00
# 'extra/CNAME': {'path': 'CNAME'},
2019-01-04 14:17:27 +01:00
"extra/.htaccess": {"path": ".htaccess"},
"extra/.well-known/acme-challenge/.keep": {
"path": ".well-known/acme-challenge/.keep"
},
}
2014-01-28 15:05:04 +01:00
# static paths will be copied without parsing their contents
STATIC_PATHS = [
2019-01-04 14:17:27 +01:00
"images",
# 'extra/robots.txt',
2018-01-10 10:58:35 +01:00
# 'extra/CNAME',
2019-01-04 14:17:27 +01:00
"extra/.htaccess",
"extra/.well-known/acme-challenge/.keep",
# 'code',
# 'notebooks'
2019-01-04 14:17:27 +01:00
]
2014-01-28 15:05:04 +01:00
# custom page generated with a jinja2 template
# TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
2014-01-28 15:05:04 +01:00
# code blocks with line numbers
2019-01-04 14:17:27 +01:00
PYGMENTS_RST_OPTIONS = {"linenos": "table"}
2014-01-28 15:05:04 +01:00
# foobar will not be used, because it's not in caps. All configuration keys
# have to be in caps
# foobar = "barbaz"
2014-01-28 15:05:04 +01:00
2019-10-02 09:47:24 +02:00
THEME = "themes/xsfx"
2019-01-04 14:17:27 +01:00
OUTPUT_PATH = "output"
PATH = "content"
2014-01-28 15:05:04 +01:00
2019-01-04 14:17:27 +01: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
2019-01-08 09:51:56 +01:00
PLUGIN_PATHS = ["pelican-plugins", "pelican-plugins-3rd"]
2019-01-04 14:17:27 +01:00
PLUGINS = [
"liquid_tags.youtube",
"liquid_tags.vimeo",
"liquid_tags.flickr",
"liquid_tags.soundcloud",
"liquid_tags.giphy",
"liquid_tags.audio",
"liquid_tags.gram",
"tipue_search",
"ipynb.liquid",
]
2014-11-18 16:10:56 +01:00
2015-06-16 11:03:00 +02:00
CACHE_CONTENT = True
LOAD_CONTENT_CACHE = True
# tags
2019-01-04 14:17:27 +01:00
TAG_URL = "tag/{slug}.html"
TAG_SAVE_AS = "tag/{slug}.html"
2015-09-17 14:53:15 +02:00
# api keys
2019-01-04 14:17:27 +01:00
FLICKR_API_KEY = "2207902126a225122e46533e82b6a947"
2019-06-05 10:09:48 +02:00
FLICKR_API_SECRET = "402a152c0cff422e3"
2019-04-25 14:35:20 +02:00
GIPHY_API_KEY = "5p444vy81N4TtGQ0J4CLeyyBTlZi2AIa"
DEFAULT_PAGINATION = 5
2019-01-04 14:17:27 +01:00
COPYRIGHT_YEAR = datetime.utcnow().strftime("%Y")
CC_LICENSE = {
"name": "Creative Commons Attribution-ShareAlike",
"version": "4.0",
"slug": "by-sa",
}
MAIN_MENU = False
2017-05-25 13:38:51 +02:00
SOCIAL = (
2019-01-04 14:17:27 +01:00
("twitter", "https://twitter.com/xsteadfastx"),
2019-01-14 09:34:55 +01:00
("mastodon", "https://chaos.social/@xsteadfastx"),
2019-01-04 14:17:27 +01:00
("github", "https://github.com/xsteadfastx"),
("flickr", "https://www.flickr.com/photos/marvinxsteadfast/"),
("rss", "{}/{}".format(FEED_DOMAIN, FEED_ATOM)),
2017-05-25 13:38:51 +02:00
)
2019-01-04 14:17:27 +01:00
LINKS = (("Archive", SITEURL + "/archives.html"),)