pico color now only needs to be set in one config file instead of two

This commit is contained in:
eclipse 2025-03-25 12:21:02 +01:00
parent 6b1e86395e
commit 38d90b20a8
2 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,10 @@ PATH = 'content'
# Content Settings # # 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 = [] DIRECT_TEMPLATES = []

View File

@ -7,7 +7,8 @@ import sys
sys.path.append(os.curdir) sys.path.append(os.curdir)
from pelicanconf import * 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:// # If your site is available via HTTPS, make sure SITEURL begins with https://