experiments collasible menu

This commit is contained in:
Huy Tran 2018-09-18 15:20:12 +10:00
parent 2d9a7adad5
commit 9b6e2d3940
4 changed files with 92 additions and 5 deletions

View file

@ -16,10 +16,14 @@
{{ with .Site.Params.description }} {{.}} {{end}}
</p>
</div>
{{ partial "sidebar/menu.html" . }}
<p>
{{ partial "sidebar/social.html" . }}
</p>
<div class="collapsible-menu">
<input type="checkbox" id="menuToggle">
<label for="menuToggle">{{ .Site.Title }}</label>
<div class="menu-content">
{{ partial "sidebar/menu.html" . }}
{{ partial "sidebar/social.html" . }}
</div>
</div>
<p class="copyright">
{{ with .Site.Params.copyright }}{{.|safeHTML}}{{ else }}&copy; {{ now.Format "2006"}} {{.Site.Params.author}}.
<a href="https://creativecommons.org/licenses/by-sa/4.0">Some Rights Reserved</a>.