From 35b3520f8de2b95a49ab015afeedef0bec28fe4a Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Wed, 8 Jan 2020 13:45:51 +0100 Subject: [PATCH] source offen account id from env --- homepage/pelicanconf.py | 3 ++- homepage/publishconf.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/homepage/pelicanconf.py b/homepage/pelicanconf.py index 5ef5570..65fc504 100644 --- a/homepage/pelicanconf.py +++ b/homepage/pelicanconf.py @@ -1,3 +1,4 @@ +import os from datetime import datetime from calendar import month_name # If your site is available via HTTPS, make sure SITEURL begins with https:// @@ -69,4 +70,4 @@ PATREON_URL = 'https://www.patreon.com/offen' LINKEDIN_URL = 'https://www.linkedin.com/company/hioffen' TWITTER_URL = 'https://twitter.com/hioffen' -OFFEN_ACCOUNT_ID = '8f7ee44a-4cd8-47f2-a77e-8c7c98d46b89' +OFFEN_ACCOUNT_ID = os.environ.get('OFFEN_ACCOUNT_ID', None) diff --git a/homepage/publishconf.py b/homepage/publishconf.py index 2d3d36c..17a1e20 100644 --- a/homepage/publishconf.py +++ b/homepage/publishconf.py @@ -15,5 +15,3 @@ FEED_ALL_ATOM = 'feeds/all.atom.xml' DELETE_OUTPUT_DIRECTORY = True PLUGINS += ['optimize_images'] - -OFFEN_ACCOUNT_ID = None