aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pelicanconf.py20
1 files 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