From b11298b250f63daf091591d1638608325f766d9a Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 25 Jul 2021 19:30:42 +0000 Subject: Fiddle a few settings for public view Current publication location wiki.cryptech.is/pelican requires minor fiddling with URLs slightly, which will need fiddling again if we adopt this for real --- pelicanconf.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index e968ae3..45c7e53 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -8,9 +8,15 @@ PATH = "content" TIMEZONE = "UTC" DEFAULT_LANG = "en" -SITEURL = "" +CRYPTECH_DEV_MODE = True -RELATIVE_URLS = True +if CRYPTECH_DEV_MODE: + SITEURL = "" + RELATIVE_URLS = True + +else: + SITEURL = "https://trac.cryptech.is/pelican/" + RELATIVE_URLS = False # Feed generation is usually not desired when developing #FEED_ALL_ATOM = None @@ -22,6 +28,7 @@ RELATIVE_URLS = True DEFAULT_PAGINATION = 10 THEME = "../m.css/pelican-theme" + THEME_STATIC_DIR = "static" #DIRECT_TEMPLATES = ["index"] @@ -35,7 +42,14 @@ M_LINKS_NAVBAR1 = [ ("Archives", "archives.html", "archives", []), ] -M_CSS_FILES = ["https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600", "/static/m-dark.css"] +M_CSS_FILES = [ + ("https://fonts.googleapis.com/css" + "?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600"), + + ("/static/m-dark.css" + if CRYPTECH_DEV_MODE else + "/pelican/static/m-dark.css") +] M_HIDE_ARTICLE_SUMMARY = True -- cgit v1.2.3