From be41c6876d3a4d81b3d2a3568d7c196709bd224d Mon Sep 17 00:00:00 2001 From: Dan1ell Date: Tue, 20 Apr 2021 16:05:31 -0300 Subject: [PATCH] Set default theme in settings (#132) * Update DEFAULT_THEME variable * Update site.html to use DEFAULT_THEME variable --- cms/settings.py | 3 ++- templates/config/installation/site.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/settings.py b/cms/settings.py index 42895eb..559433c 100644 --- a/cms/settings.py +++ b/cms/settings.py @@ -16,7 +16,8 @@ CAN_ADD_MEDIA = "all" # valid choices here are 'public', 'private', 'unlisted PORTAL_WORKFLOW = "public" -DEFAULT_THEME = "black" # this is not taken under consideration currently +# valid values: 'light', 'dark'. +DEFAULT_THEME = "light" # These are passed on every request diff --git a/templates/config/installation/site.html b/templates/config/installation/site.html index be5333b..e181b72 100644 --- a/templates/config/installation/site.html +++ b/templates/config/installation/site.html @@ -4,7 +4,7 @@ MediaCMS.site = { url: '{{FRONTEND_HOST}}', api: '{{FRONTEND_HOST}}api/v1', theme: { - mode: 'light', // Valid values: 'light', 'dark'. + mode: '{{DEFAULT_THEME}}', switch: { position: 'header', // Valid values: 'header', 'sidebar'. },