mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Add Option To Hide Color Scheme Toggle (#406)
* Add color scheme toggle Add hidedarkmodetoggle to exampleSite, stackbit Change property name to hidecolorscheme toggle * Add my name to CONTRIBUTORS.md
This commit is contained in:
@@ -4,9 +4,11 @@
|
||||
{{ .Site.Title }}
|
||||
</a>
|
||||
{{ if or .Site.Menus.main .Site.IsMultiLingual }}
|
||||
<span id="dark-mode-toggle" class="float-right">
|
||||
<i class="fa fa-adjust fa-fw" aria-hidden="true"></i>
|
||||
</span>
|
||||
{{ if not .Site.Params.hidecolorschemetoggle }}
|
||||
<span id="dark-mode-toggle" class="float-right">
|
||||
<i class="fa fa-adjust fa-fw" aria-hidden="true"></i>
|
||||
</span>
|
||||
{{ end }}
|
||||
<input type="checkbox" id="menu-toggle" />
|
||||
<label class="menu-button float-right" for="menu-toggle">
|
||||
<i class="fa fa-bars fa-fw" aria-hidden="true"></i>
|
||||
@@ -36,9 +38,11 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<li class="navigation-item separator">
|
||||
<span>|</span>
|
||||
</li>
|
||||
{{ if not .Site.Params.hidecolorschemetoggle }}
|
||||
<li class="navigation-item separator">
|
||||
<span>|</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user