From 926756a7015bd2fe2a110a3af117e4b99bc40e81 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 26 Dec 2024 11:02:14 -0500 Subject: [PATCH] new site configuration: color scheme --- boofilsic/settings.py | 2 ++ common/templates/common_libs.html | 2 +- docs/configuration.md | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/boofilsic/settings.py b/boofilsic/settings.py index d685a01d..dbd87880 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -36,6 +36,7 @@ env = environ.FileAwareEnv( NEODB_SITE_LOGO=(str, "/s/img/logo.svg"), NEODB_SITE_ICON=(str, "/s/img/icon.png"), NEODB_USER_ICON=(str, "/s/img/avatar.svg"), + NEODB_SITE_COLOR=(str, "azure"), # https://picocss.com/docs/colors NEODB_SITE_INTRO=(str, ""), NEODB_SITE_HEAD=(str, ""), NEODB_SITE_DESCRIPTION=( @@ -205,6 +206,7 @@ SITE_INFO = { "site_logo": env("NEODB_SITE_LOGO"), "site_icon": env("NEODB_SITE_ICON"), "user_icon": env("NEODB_USER_ICON"), + "site_color": env("NEODB_SITE_COLOR"), "site_intro": env("NEODB_SITE_INTRO"), "site_description": env("NEODB_SITE_DESCRIPTION"), "site_head": env("NEODB_SITE_HEAD"), diff --git a/common/templates/common_libs.html b/common/templates/common_libs.html index e8f728d1..ca9cf4cc 100644 --- a/common/templates/common_libs.html +++ b/common/templates/common_libs.html @@ -20,7 +20,7 @@ + href="{{ cdn_url }}/npm/@yohns/picocss@2.2.1/css/pico.{{ site_color }}.min.css" /> diff --git a/docs/configuration.md b/docs/configuration.md index 0c0b1a8a..4acc6eaa 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -21,6 +21,7 @@ if you are doing debug or development: - `NEODB_SITE_LOGO` - `NEODB_SITE_ICON` - `NEODB_USER_ICON` + - `NEODB_SITE_COLOR` - one of [these color schemes](https://picocss.com/docs/colors) - `NEODB_SITE_INTRO` - `NEODB_SITE_HEAD` - `NEODB_SITE_DESCRIPTION`