From 13584878c23146c7093c8d1b9150ff9a98d28c8b Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 14 Nov 2019 00:23:01 +0100 Subject: Polish multilang mode, update docs --- assets/_custom.scss | 4 +++- assets/_variables.scss | 4 +++- assets/search-data.js | 2 +- assets/search.js | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'assets') 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() { -- cgit v1.2.3