From 38d90b20a86497b4752465a5e313b7faf0064353 Mon Sep 17 00:00:00 2001 From: eclipse Date: Tue, 25 Mar 2025 12:21:02 +0100 Subject: [PATCH] pico color now only needs to be set in one config file instead of two --- pelicanconf.py | 5 ++++- publishconf.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index 0029f2c..1bb5924 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -18,7 +18,10 @@ PATH = 'content' # Content Settings # ############################################################################### -STYLESHEET_FILES = ("pico.slate.css", "font.local.css", "custom.css") +PICO_COLOR = 'slate' +FONT_SOURCE = "local" +CUSTOM_CSS = "custom.css" +STYLESHEET_FILES = ("pico." + PICO_COLOR + ".css", "font." + FONT_SOURCE + ".css", CUSTOM_CSS) DIRECT_TEMPLATES = [] diff --git a/publishconf.py b/publishconf.py index 9ff14c5..e07f014 100644 --- a/publishconf.py +++ b/publishconf.py @@ -7,7 +7,8 @@ import sys sys.path.append(os.curdir) from pelicanconf import * -STYLESHEET_FILES = ("pico.zinc.min.css", "font.cdn.css", "custom.css") +FONT_SOURCE = "cdn" +STYLESHEET_FILES = ("pico." + PICO_COLOR + ".min.css", "font." + FONT_SOURCE + ".css", CUSTOM_CSS) # If your site is available via HTTPS, make sure SITEURL begins with https://