Allow disabling custom Scroll Bar Style

closes #637

Usage =>
Params.assets.disableScrollBarStyle: true
This commit is contained in:
Aditya Telange 2022-06-03 18:33:54 +05:30
parent 0ed246d47d
commit 181a8c38f3
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -39,6 +39,11 @@
{{- $includes := slice }} {{- $includes := slice }}
{{- $includes = $includes | append (" " | resources.FromString "assets/css/includes-blank.css")}} {{- $includes = $includes | append (" " | resources.FromString "assets/css/includes-blank.css")}}
{{- if not (eq site.Params.assets.disableScrollBarStyle true) }}
{{- $ScrollStyle := (resources.Get "css/includes/scroll-bar.css") }}
{{- $includes = (append $ScrollStyle $includes) }}
{{- end }}
{{- $includes_all := $includes | resources.Concat "assets/css/includes.css" }} {{- $includes_all := $includes | resources.Concat "assets/css/includes.css" }}
{{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }}