mirror of
https://git.kittycat.homes/zoe/hugo-battheme.git
synced 2024-08-15 03:25:18 +00:00
fallbacks for noscript
This commit is contained in:
parent
5cc0c2e449
commit
797ce896ad
10 changed files with 66 additions and 6 deletions
22
layouts/_default/nav.html
Normal file
22
layouts/_default/nav.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{ define "main" }}
|
||||
<section id="main">
|
||||
<header>
|
||||
<h1 id="title" class="colorswitch">
|
||||
<a href="../" class="colorswitch uplink">{{ .Title }}</a>
|
||||
</h1>
|
||||
</header>
|
||||
<div>
|
||||
<article id="content" class="colorswitch">
|
||||
{{ .Content }}
|
||||
<p>
|
||||
<nav>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.nav }}
|
||||
<a class="hamburger-nav-item{{if or ($currentPage.IsMenuCurrent "nav" .) ($currentPage.HasMenuCurrent "nav" .) }} active{{end}} colorswitch" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }} {{ .Title }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue