kaka.farm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 6b283fddb0b1fab3635b92eb675f2303e4feb325
parent 5e2860a3c1ae43121d11ab4e4b0831e44dd711da
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Wed,  6 Jun 2018 03:15:36 +0300

Use exec() to load Pelican's base configuration

Diffstat:
Mpelican_development_configuration.py | 7++++---
Mpelican_gitlab_configuration.py | 2+-
Mpelican_publication_configuration.py | 7++++---
3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/pelican_development_configuration.py b/pelican_development_configuration.py @@ -1,8 +1,9 @@ import pathlib -from pelican_base_configuration import ( - PATH, - TIMEZONE, +exec( + open( + "pelican_base_configuration.py", + ).read(), ) SITEURL = (pathlib.Path(".").absolute() / "output").as_uri() diff --git a/pelican_gitlab_configuration.py b/pelican_gitlab_configuration.py @@ -1,7 +1,7 @@ exec( open( "pelican_base_configuration.py", - ).read() + ).read(), ) SITEURL = "https://yuvallanger.gitlab.io/kaka.farm" diff --git a/pelican_publication_configuration.py b/pelican_publication_configuration.py @@ -1,6 +1,7 @@ -from pelican_base_configuration import ( - PATH, - TIMEZONE, +exec( + open( + "pelican_base_configuration.py", + ).read(), ) SITEURL = "https://kaka.farm/blog"