⚰️ Remove redundant appearance parameter check

Ref #102
pull/110/head
James Panther 2022-02-06 14:46:03 +11:00
parent 37e01d1ea5
commit 88946105fd
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 2 additions and 4 deletions

View File

@ -50,10 +50,8 @@
href="{{ $bundleCSS.RelPermalink }}" href="{{ $bundleCSS.RelPermalink }}"
integrity="{{ $bundleCSS.Data.Integrity }}" integrity="{{ $bundleCSS.Data.Integrity }}"
/> />
{{ if .Site.Params.enableAppearanceSwitching | default true }} {{ $jsAppearance := resources.Get "js/appearance.js" }}
{{ $jsAppearance := resources.Get "js/appearance.js" }} {{ $assets.Add "js" (slice $jsAppearance) }}
{{ $assets.Add "js" (slice $jsAppearance) }}
{{ end }}
{{ if .Site.Params.enableSearch | default false }} {{ if .Site.Params.enableSearch | default false }}
{{ $jsFuse := resources.Get "lib/fuse/fuse.min.js" }} {{ $jsFuse := resources.Get "lib/fuse/fuse.min.js" }}
{{ $jsSearch := resources.Get "js/search.js" }} {{ $jsSearch := resources.Get "js/search.js" }}