diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-14 00:23:01 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-16 20:35:23 +0100 |
commit | 13584878c23146c7093c8d1b9150ff9a98d28c8b (patch) | |
tree | cc3aabd06040a8879a27881e62afa3ec52e85392 /assets | |
parent | 7b52bf423214194ab39392db6e9bc2de9d36a02d (diff) |
Polish multilang mode, update docs
Diffstat (limited to 'assets')
-rw-r--r-- | assets/_custom.scss | 4 | ||||
-rw-r--r-- | assets/_variables.scss | 4 | ||||
-rw-r--r-- | assets/search-data.js | 2 | ||||
-rw-r--r-- | assets/search.js | 2 |
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() { |