Update settings
This commit is contained in:
parent
e13a6e1d4f
commit
debd2acff6
1 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: utf-8 -*- #
|
# -*- coding: utf-8 -*- #
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from git import Repo
|
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.insert(0, os.path.realpath('./'))
|
sys.path.insert(0, os.path.realpath('./'))
|
||||||
|
|
||||||
|
@ -16,6 +15,10 @@ THEME = "theme"
|
||||||
THEME_STATIC_DIR = "static"
|
THEME_STATIC_DIR = "static"
|
||||||
THEME_STATIC_PATHS = ["static/build"]
|
THEME_STATIC_PATHS = ["static/build"]
|
||||||
STATIC_PATHS = ["assets"]
|
STATIC_PATHS = ["assets"]
|
||||||
|
DEFAULT_DATE = 'fs'
|
||||||
|
WITH_FUTURE_DATES = True
|
||||||
|
LOAD_CONTENT_CACHE = False
|
||||||
|
CACHE_CONTENT = False
|
||||||
|
|
||||||
USE_FOLDER_AS_CATEGORY = True
|
USE_FOLDER_AS_CATEGORY = True
|
||||||
DEFAULT_PAGINATION = False
|
DEFAULT_PAGINATION = False
|
||||||
|
@ -28,7 +31,6 @@ FOOTER_LINKS = links.footer()
|
||||||
INDEX_PROJECTS = links.index_projects()
|
INDEX_PROJECTS = links.index_projects()
|
||||||
|
|
||||||
# Extra config
|
# Extra config
|
||||||
REPO = Repo(search_parent_directories=True)
|
|
||||||
BUILD_PRODUCTION = 'BUILD_PRODUCTION' in os.environ
|
BUILD_PRODUCTION = 'BUILD_PRODUCTION' in os.environ
|
||||||
from plugins import image_resizer
|
from plugins import image_resizer
|
||||||
META_IMAGES = image_resizer.generate()
|
META_IMAGES = image_resizer.generate()
|
||||||
|
@ -65,7 +67,6 @@ FEED_DOMAIN = SITEURL
|
||||||
PLUGIN_PATHS = ["plugins", "pelican_plugins"]
|
PLUGIN_PATHS = ["plugins", "pelican_plugins"]
|
||||||
PLUGINS = [
|
PLUGINS = [
|
||||||
'sitemap',
|
'sitemap',
|
||||||
'filetime_from_git',
|
|
||||||
'pelican-jinja2content',
|
'pelican-jinja2content',
|
||||||
'metatags',
|
'metatags',
|
||||||
'autopages',
|
'autopages',
|
||||||
|
@ -98,7 +99,8 @@ MARKDOWN = {
|
||||||
CommentsExtension(),
|
CommentsExtension(),
|
||||||
'codehilite(css_class=highlight)',
|
'codehilite(css_class=highlight)',
|
||||||
'extra'
|
'extra'
|
||||||
]
|
],
|
||||||
|
"output_format": "html5"
|
||||||
}
|
}
|
||||||
# Setup jinja2 filters
|
# Setup jinja2 filters
|
||||||
from plugins import filters
|
from plugins import filters
|
||||||
|
|
Reference in a new issue