From 181a8c38f36f049ccaef94274540c01d2619088c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 3 Jun 2022 18:33:54 +0530 Subject: [PATCH] Allow disabling custom Scroll Bar Style closes #637 Usage => Params.assets.disableScrollBarStyle: true --- layouts/partials/head.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5695a5bb..770bdaac 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -39,6 +39,11 @@ {{- $includes := slice }} {{- $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" }} {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }}