diff --git a/Makefile b/Makefile index c367ba2..3bb4c6f 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ PELICAN=$(ENV)/pelican OUTPUTDIR=$(BASEDIR)/output PLUGINS_DIR=$(BASEDIR)/pelican_plugins DEPLOY_DIR=$(BASEDIR)/deploy +CONFIG_FILE=$(BASEDIR)/config/pelicanconf.py FLAKE8_IGNORE=--ignore=E128,E501,E401,E402 @@ -17,7 +18,7 @@ build: install npm run build-js npm run build-scss @echo ">> Building pelican..." - $(PELICAN) -o $(OUTPUTDIR) -v + $(PELICAN) -o $(OUTPUTDIR) -vs $(CONFIG_FILE) mv $(OUTPUTDIR)/assets/robots.txt $(OUTPUTDIR) cp -R $(OUTPUTDIR)/assets/* $(OUTPUTDIR)/static rm -rf $(OUTPUTDIR)/assets diff --git a/pelicanconf.py b/config/pelicanconf.py similarity index 90% rename from pelicanconf.py rename to config/pelicanconf.py index 8253887..96c046e 100644 --- a/pelicanconf.py +++ b/config/pelicanconf.py @@ -2,17 +2,17 @@ from __future__ import unicode_literals from git import Repo import sys, os -sys.path.insert(0, os.path.realpath('./plugins')) +sys.path.insert(0, os.path.realpath('./')) # Global core settings AUTHOR = 'Jake Howard' SITENAME = 'TheOrangeOne' SITEURL = 'http://theorangeone.net' -PATH = 'content' +PATH = '../content' TIMEZONE = 'Europe/London' DEFAULT_LANG = 'en' PAGE_PATHS = ["pages"] -THEME = "theme" +THEME = "../theme" THEME_STATIC_DIR = "static" THEME_STATIC_PATHS = ["static/build"] STATIC_PATHS = ["assets"] @@ -22,7 +22,7 @@ DEFAULT_PAGINATION = False SLUGIFY_SOURCE = 'basename' # Social widget -import links +from plugins import links ACCOUNTS = links.accounts() FOOTER_LINKS = links.footer() INDEX_PROJECTS = links.index_projects() @@ -30,7 +30,7 @@ INDEX_PROJECTS = links.index_projects() # Extra config REPO = Repo(search_parent_directories=True) BUILD_PRODUCTION = 'BUILD_PRODUCTION' in os.environ -import image_resizer +from plugins import image_resizer META_IMAGES = image_resizer.generate() # Disable some pages @@ -58,7 +58,7 @@ FEED_ATOM = 'feed.atom' FEED_DOMAIN = SITEURL # Setup plugins -PLUGIN_PATHS = ["pelican_plugins", "plugins"] +PLUGIN_PATHS = ["../pelican_plugins", "../plugins"] PLUGINS = [ "sitemap", "filetime_from_git", @@ -94,7 +94,7 @@ MD_EXTENSIONS = [ ] # Setup jinja2 filters -import filters +from plugins import filters JINJA_FILTERS = { "datetime": filters.format_datetime, "category_find": filters.category_find,