diff options
author | Vikrant Chaudhary <nasa42@gmail.com> | 2015-08-16 19:28:04 +0530 |
---|---|---|
committer | Vikrant Chaudhary <nasa42@gmail.com> | 2015-08-16 19:28:04 +0530 |
commit | 2102e870b3b3d0393a47dd76cca0de3fac5a7373 (patch) | |
tree | 7794c02aae3d9ee2e48c4cc99afa88833021c60e /pelicanconf.py | |
parent | f35c8e5e2bb988962404507d605f16c0687a8dc6 (diff) |
Added the newsletter theme.
Diffstat (limited to 'pelicanconf.py')
-rw-r--r-- | pelicanconf.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pelicanconf.py b/pelicanconf.py index b4c2e01..6c6f1e4 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals +import os AUTHOR = u'Corey Richardson' SITENAME = u"This Week in Rust" @@ -8,7 +9,15 @@ SITEURL = 'http://this-week-in-rust.org' SOURCE_URL = 'https://github.com/cmr/this-week-in-rust' -THEME = 'themes/rusted' +if '1' == os.environ.get('TWIR_NEWSLETTER_THEME'): + THEME = 'themes/newsletter' + css_path = os.path.join(os.path.dirname(__file__), 'themes', 'newsletter', 'static', 'css') + with open(os.path.join(css_path, 'ink.css')) as f: + CSS_INK = f.read() + with open(os.path.join(css_path, 'main.css')) as f: + CSS_MAIN = f.read() +else: + THEME = 'themes/rusted' PLUGIN_PATHS = ["plugins"] PLUGINS = ['assets'] |