mirror of https://github.com/lxndrblz/anatole.git

alexanderdavide
13.04.2022 3be3958812aff76710e17f58a370dd4601f061f8
feat: allow setting displayMode dark from params
1 files modified
10 ■■■■■ changed files
layouts/_default/baseof.html 10 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html
@@ -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" . -}}