aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/_custom.scss4
-rw-r--r--assets/_variables.scss4
-rw-r--r--assets/search-data.js2
-rw-r--r--assets/search.js2
4 files changed, 8 insertions, 4 deletions
diff --git a/assets/_custom.scss b/assets/_custom.scss
index 75c4833..0de9ae1 100644
--- a/assets/_custom.scss
+++ b/assets/_custom.scss
@@ -1 +1,3 @@
-/* To be overridden by theme user, scss variables are also accessible here */
+/* You can add custom styles here. */
+
+// @import "plugins/numbered";
diff --git a/assets/_variables.scss b/assets/_variables.scss
index 5cbcc8c..6e34d16 100644
--- a/assets/_variables.scss
+++ b/assets/_variables.scss
@@ -1 +1,3 @@
-/* To be overridden by theme user, e.g. set SASS vars*/
+/* You can override SASS variables here. */
+
+// @import "plugins/dark";
diff --git a/assets/search-data.js b/assets/search-data.js
index 9c7f6a9..cb7c8da 100644
--- a/assets/search-data.js
+++ b/assets/search-data.js
@@ -1,7 +1,7 @@
'use strict';
(function() {
- const indexCfg = {{ with .Site.Params.BookSearchConfig }}
+ const indexCfg = {{ with .Scratch.Get "bookSearchConfig" }}
{{ . }};
{{ else }}
{};
diff --git a/assets/search.js b/assets/search.js
index f21d4bf..9b1c5ab 100644
--- a/assets/search.js
+++ b/assets/search.js
@@ -1,6 +1,6 @@
'use strict';
-{{ $searchDataFile := printf "%s.%s" .Language.Lang "search-data.js" }}
+{{ $searchDataFile := printf "%s.search-data.js" .Language.Lang }}
{{ $searchData := resources.Get "search-data.js" | resources.ExecuteAsTemplate $searchDataFile . | resources.Minify | resources.Fingerprint }}
(function() {