Created
August 29, 2014 09:25
-
-
Save mfa/f3b0c6ffc7861ea89b53 to your computer and use it in GitHub Desktop.
pelican config for madflex.de (anonymized)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
AUTHOR = u'FIXME' | |
SITENAME = u'FIXME' | |
SITEURL = 'http://example.org' | |
TIMEZONE = 'Europe/Berlin' | |
DEFAULT_LANG = u'en' | |
# Feed generation is usually not desired when developing | |
FEED_ALL_ATOM = None | |
CATEGORY_FEED_ATOM = None | |
TRANSLATION_FEED_ATOM = None | |
ARTICLE_URL = "{slug}/" | |
ARTICLE_SAVE_AS = "{slug}/index.html" | |
CATEGORY_URL = "category/{slug}" | |
CATEGORY_SAVE_AS = "category/{slug}/index.html" | |
TAG_URL = "tag/{slug}/" | |
TAG_SAVE_AS = "tag/{slug}/index.html" | |
YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html' | |
# Social widget | |
SOCIAL = (('Twitter: @FIXME', 'http://twitter.com/FIXME'), | |
('Github: @FIXME', 'https://github.com/FIXME'),) | |
DEFAULT_PAGINATION = 10 | |
# Uncomment following line if you want document-relative URLs when developing | |
RELATIVE_URLS = True | |
STATIC_PATHS = ['images', 'pdfs'] | |
# choose the one you like | |
THEME = u'pelican-themes/pelican-bootstrap3' | |
PLUGIN_PATHS = ['/home/FIXME/FIXME/pelican-plugins', ] | |
PLUGINS = ['neighbors', 'sitemap', 'minification',] | |
SITEMAP = { | |
'format': 'xml', | |
'priorities': { | |
'articles': 0.5, | |
'indexes': 0.5, | |
'pages': 0.5 | |
}, | |
'changefreqs': { | |
'articles': 'monthly', | |
'indexes': 'daily', | |
'pages': 'monthly' | |
} | |
} | |
# save future posts in draft until date reached (and new publishing done) | |
WITH_FUTURE_DATES = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
# This file is only used if you use `make publish` or | |
# explicitly specify it as your config file. | |
import os | |
import sys | |
sys.path.append(os.curdir) | |
from pelicanconf import * | |
SITEURL = 'http://FIXME' | |
RELATIVE_URLS = True | |
FEED_ALL_ATOM = 'feed.atom' | |
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml' | |
DELETE_OUTPUT_DIRECTORY = True | |
# Following items are often useful when publishing | |
DISQUS_SITENAME = "FIXME" | |
# some themes use one some the other :( | |
GOOGLE_ANALYTICS_ID = 'UA-FIXME' | |
GOOGLE_ANALYTICS = "UA-FIXME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment