Skip to content

Commit

Permalink
feat: allow setting displayMode dark from params
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderdavide committed Feb 13, 2022
1 parent 5dd44d3 commit 3be3958
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
class="html"
>
{{- partial "head.html" . -}}
<body class="body theme--light">
<body
{{ if eq .Params.displayMode "dark" }}
class="body theme--dark"

{{ else }}
class="body theme--light"

{{ end }}
>
<div class="wrapper">
<aside class="wrapper__sidebar">
{{- partial "sidebar.html" . -}}
Expand Down

0 comments on commit 3be3958

Please sign in to comment.