mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-09-04 10:35:32 -04:00
organize config.toml params, and stop treating frontmattered CSS as SCSS unnecessarily -- it appears to cause some weird race condition with temporary files every once in a while...? not the intended use anyways though.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
@@ -18,7 +18,7 @@
|
||||
|
||||
// which class is <body> set to initially?
|
||||
// eslint-disable-next-line
|
||||
var default_theme = "{{ .Site.Params.defaultTheme }}";
|
||||
var default_theme = "{{ .Site.Params.Theme.defaultTheme }}";
|
||||
|
||||
// use an element with class `dark-mode-toggle` to trigger swap when clicked
|
||||
var toggle = doc.querySelector(".dark-mode-toggle");
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// NOTE: all variables set by Hugo's config.toml MUST go here:
|
||||
// prettier-ignore
|
||||
$max-width: "{{ printf "%d%s" .Site.Params.maxWidth "px" }}";
|
||||
$max-width: "{{ printf "%d%s" .Site.Params.Theme.maxWidth "px" }}";
|
||||
$base-url: "{{ strings.TrimRight "/" .Site.BaseURL }}" + "/";
|
||||
|
||||
// those values need quotes because, even though prettier & stylelint are correct
|
||||
|
||||
Reference in New Issue
Block a user