2016-05-13 21:13:23 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*- #
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2016-05-21 20:35:59 +01:00
|
|
|
import sys, os
|
|
|
|
sys.path.insert(0, os.path.realpath('./plugins'))
|
|
|
|
|
2016-05-13 21:13:23 +01:00
|
|
|
AUTHOR = 'Jake Howard'
|
|
|
|
SITENAME = 'TheOrangeOne'
|
2016-05-13 21:37:54 +01:00
|
|
|
SITEURL = 'http://theorangeone.net'
|
2016-05-13 21:13:23 +01:00
|
|
|
|
|
|
|
PATH = 'content'
|
|
|
|
|
|
|
|
TIMEZONE = 'Europe/London'
|
|
|
|
|
|
|
|
DEFAULT_LANG = 'en'
|
|
|
|
|
|
|
|
# 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 = (('Pelican', 'http://getpelican.com/'),
|
|
|
|
('Python.org', 'http://python.org/'),
|
|
|
|
('Jinja2', 'http://jinja.pocoo.org/'),
|
|
|
|
('You can modify those links in your config file', '#'),)
|
|
|
|
|
|
|
|
# Social widget
|
2016-05-21 20:35:59 +01:00
|
|
|
import social
|
|
|
|
SOCIAL = social.generate()
|
|
|
|
|
2016-05-13 21:13:23 +01:00
|
|
|
|
2016-05-21 20:35:59 +01:00
|
|
|
DEFAULT_PAGINATION = False
|
2016-05-13 21:37:54 +01:00
|
|
|
DELETE_OUTPUT_DIRECTORY = True
|
2016-05-27 15:42:29 +01:00
|
|
|
|
2016-05-13 21:37:54 +01:00
|
|
|
|
|
|
|
PAGE_PATHS = ["pages"]
|
|
|
|
PAGE_SAVE_AS = "{slug}/index.html"
|
|
|
|
PAGE_URL = "{slug}"
|
|
|
|
|
|
|
|
THEME = "theme"
|
|
|
|
THEME_STATIC_DIR = "static"
|
|
|
|
THEME_STATIC_PATHS = ['static/build']
|
|
|
|
STATIC_PATHS = ["assets", "assets/favicon.ico"]
|
|
|
|
EXTRA_PATH_METADATA = {
|
|
|
|
"assets/favicon.ico": {"path": "favicon.ico"}
|
|
|
|
}
|
|
|
|
|
2016-05-27 15:16:13 +01:00
|
|
|
ARTICLE_SAVE_AS = "{category}/{slug}/index.html"
|
|
|
|
ARTICLE_URL = "{category}/{slug}/"
|
2016-05-13 21:37:54 +01:00
|
|
|
|
|
|
|
TAG_URL = "blog/tag/{slug}/"
|
|
|
|
TAG_SAVE_AS = "blog/tag/{slug}/index.html"
|
|
|
|
|
2016-05-27 15:16:13 +01:00
|
|
|
TAGS_URL = "tags/"
|
|
|
|
TAGS_SAVE_AS = "tags/index.html"
|
2016-05-13 21:37:54 +01:00
|
|
|
|
2016-05-27 15:16:13 +01:00
|
|
|
AUTHOR_URL = "author/{slug}/"
|
|
|
|
AUTHOR_SAVE_AS = "author/{slug}/index.html"
|
2016-05-13 21:37:54 +01:00
|
|
|
|
2016-05-27 15:16:13 +01:00
|
|
|
AUTHORS_URL = False
|
|
|
|
AUTHORS_SAVE_AS = False
|
2016-05-13 21:37:54 +01:00
|
|
|
|
2016-05-27 15:16:13 +01:00
|
|
|
ARCHIVES_URL = False
|
|
|
|
ARCHIVES_SAVE_AS = False
|
2016-05-13 21:37:54 +01:00
|
|
|
|
2016-05-27 15:16:13 +01:00
|
|
|
CATEGORY_SAVE_AS = "{slug}/index.html"
|
2016-05-13 21:37:54 +01:00
|
|
|
CATEGORIES_SAVE_AS = False
|
2016-05-27 15:16:13 +01:00
|
|
|
USE_FOLDER_AS_CATEGORY = True
|
2016-05-13 21:37:54 +01:00
|
|
|
|
2016-05-21 20:35:59 +01:00
|
|
|
PLUGIN_PATHS = ["pelican_plugins"]
|
2016-05-27 15:16:13 +01:00
|
|
|
PLUGINS = ["sitemap", "filetime_from_git"]
|
2016-05-17 18:32:23 +01:00
|
|
|
|
|
|
|
SITEMAP = {
|
2016-05-27 15:16:13 +01:00
|
|
|
"format": "xml"
|
2016-05-17 18:32:23 +01:00
|
|
|
}
|
2016-05-21 20:35:59 +01:00
|
|
|
|
2016-05-27 15:42:29 +01:00
|
|
|
import filters
|
|
|
|
JINJA_FILTERS = {
|
|
|
|
"datetime": filters.format_datetime
|
|
|
|
}
|
2016-05-21 20:35:59 +01:00
|
|
|
# Extra context
|