浏览代码

refactor: params.toml changes for improved theme system

Rename `color_theme` to `theme`.
Default theme has been renamed from Default to Minimal.
The Font set is now set by the theme unless overrided by user in `params.toml`.
Font size is now set in `params.toml` rather than in the font set.
Options for `font_size` are now s,m, or l.
George Cushen 6 年之前
父节点
当前提交
4a201569f6
共有 1 个文件被更改,包括 17 次插入8 次删除
  1. 17 8
      exampleSite/config/_default/params.toml

+ 17 - 8
exampleSite/config/_default/params.toml

@@ -1,15 +1,24 @@
 # SITE SETUP
 # SITE SETUP
 # Documentation: https://sourcethemes.com/academic/
 # Documentation: https://sourcethemes.com/academic/
 
 
-# Color theme.
-#   Choose from `default`, `ocean`, `forest`, `dark`, `apogee`, `1950s`, `coffee`, `rose`, `strawberry`, `mr_robot`.
-color_theme = "default"
+# Choose a theme.
+#   Latest themes (may require updating Academic): https://sourcethemes.com/academic/themes/
+#   Browse built-in themes in `themes/academic/data/themes/`
+#   Browse user installed themes in `data/themes/`
+theme = "minimal"
+
 # Enable users to switch between day and night mode?
 # Enable users to switch between day and night mode?
 day_night = true
 day_night = true
 
 
-# Font style.
-#   Choose from `default`, `classic`, `rose`, or `mr_robot`.
-font = "default"
+# Overrride the theme's font set (optional).
+#   Latest font sets (may require updating Academic): https://sourcethemes.com/academic/themes/
+#   Browse built-in font sets in `themes/academic/data/fonts/`
+#   Browse user installed font sets in `data/fonts/`
+font = ""
+
+# Choose a font size.
+# Sizes: s (small), m (medium), l (large)
+font_size = "m"
 
 
 # Description for social sharing and search engines. If undefined, superuser role is used in place.
 # Description for social sharing and search engines. If undefined, superuser role is used in place.
 description = ""
 description = ""
@@ -17,10 +26,10 @@ description = ""
 # Default image for social sharing and search engines. Place image in `static/img/` folder and specify image name here.
 # Default image for social sharing and search engines. Place image in `static/img/` folder and specify image name here.
 sharing_image = ""
 sharing_image = ""
 
 
-# Twitter username (without @). Used when a vistor shares your site on Twitter.
+# Twitter username (without @). Used when a visitor shares your site on Twitter.
 twitter = ""
 twitter = ""
 
 
-# Diplay a logo in navigation bar rather than title (optional).
+# Display a logo in navigation bar rather than title (optional).
 #   To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
 #   To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
 logo = ""
 logo = ""