1
Fork 0

add values to settings

This commit is contained in:
Jake Howard 2016-09-08 22:14:42 +01:00
parent 7ef539754b
commit beaa167eac
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 29 additions and 20 deletions

View file

@ -1 +1,20 @@
foo: bar
author: Jake Howard
site_name: TheOrangeOne
url: https://theorangeone.net
timezone: Europe/London
language: en
pelican_plugins:
- sitemap
- filetime_from_git
- pelican-jinja2content
- metatags
- autopages
- screenfetch
sitemap_format: xml
minify_config:
- remove_comments: true
- remove_optional_attribute_quotes: false
- reduce_boolean_attributes: true

View file

@ -5,14 +5,15 @@ import sys, os
sys.path.insert(0, os.path.realpath('./'))
from config import settings
print("Settings: ", settings)
# Global core settings
AUTHOR = 'Jake Howard'
SITENAME = 'TheOrangeOne'
SITEURL = 'http://theorangeone.net'
AUTHOR = settings.author
SITENAME = settings.site_name
SITEURL = settings.url
PATH = '../content'
TIMEZONE = 'Europe/London'
DEFAULT_LANG = 'en'
TIMEZONE = settings.timezone
DEFAULT_LANG = settings.language
PAGE_PATHS = ["pages"]
THEME = "../theme"
THEME_STATIC_DIR = "static"
@ -61,27 +62,16 @@ FEED_DOMAIN = SITEURL
# Setup plugins
PLUGIN_PATHS = ["../pelican_plugins", "../plugins"]
PLUGINS = [
"sitemap",
"filetime_from_git",
"pelican-jinja2content",
"metatags",
"autopages",
"screenfetch"
]
PLUGINS = settings.pelican_plugins
if BUILD_PRODUCTION:
PLUGINS.append("minify") # only minify on production build
SITEMAP = {
"format": "xml"
"format": settings.sitemap_format
}
CATEGORY_PAGE_PATH = "theme/templates/categories"
MINIFY = {
"remove_comments": True,
"remove_optional_attribute_quotes": False,
"reduce_boolean_attributes": True
}
MINIFY = settings.minify_config
# Setup markdown extensions
from fontawesome_markdown import FontAwesomeExtension