Skip to content

Commit

Permalink
Allow disabling custom Scroll Bar Style
Browse files Browse the repository at this point in the history
closes adityatelange#637

Usage =>
Params.assets.disableScrollBarStyle: true
  • Loading branch information
adityatelange authored and romainx committed Jul 26, 2022
1 parent 99dc624 commit ecc0c99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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") }}
Expand Down

0 comments on commit ecc0c99

Please sign in to comment.