Просмотр исходного кода

Set default theme in settings (#132)

* Update DEFAULT_THEME variable

* Update site.html to use DEFAULT_THEME variable
Dan1ell 4 лет назад
Родитель
Сommit
be41c6876d
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      cms/settings.py
  2. 1 1
      templates/config/installation/site.html

+ 2 - 1
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

+ 1 - 1
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'.
 		},