Skip to content

Commit

Permalink
feat: preparing to build dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceOrunitia committed Sep 16, 2024
1 parent f8aae32 commit 0f0c19d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@ enableRobotsTXT = true
sidebar_menu_foldable = true
ul_show = 3
sidebar_search_disable = false
showLightDarkModeMenu = false
5 changes: 5 additions & 0 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
{{ partial "navbar-lang-selector.html" . -}}
</li>
{{ end -}}
{{ if .Site.Params.ui.showLightDarkModeMenu -}}
<li class="td-light-dark-menu nav-item dropdown">
{{ partial "theme-toggler" . }}
</li>
{{ end -}}
</ul>
</div>
<div class="navbar-nav d-none d-lg-block">
Expand Down

0 comments on commit 0f0c19d

Please sign in to comment.