template/_base: Add aria role attribute
This commit is contained in:
parent
a00195be16
commit
092304f891
1 changed files with 37 additions and 35 deletions
|
|
@ -1,48 +1,50 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<head>
|
<title>{{ block "title" . }}WissKI Distillery{{ end }}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
{{ block "styles" . }}styles{{ end }}
|
||||||
<meta charset="utf-8">
|
</head>
|
||||||
|
|
||||||
<title>{{ block "title" . }}WissKI Distillery{{ end }}</title>
|
<body>
|
||||||
{{ block "styles" . }}styles{{ end }}
|
{{ .BaseContext.DoInitCheck }}
|
||||||
</head>
|
<nav class="pure-menu pure-menu-horizontal">
|
||||||
|
<ul class="pure-menu-list">
|
||||||
<body>
|
{{ range .BaseContext.Menu }}
|
||||||
{{ .BaseContext.DoInitCheck }}
|
|
||||||
<nav class="pure-menu pure-menu-horizontal">
|
|
||||||
<ul class="pure-menu-list">
|
|
||||||
{{ range .BaseContext.Menu }}
|
|
||||||
<li class="pure-menu-item{{ if .Active }} pure-menu-selected{{ end }}">
|
<li class="pure-menu-item{{ if .Active }} pure-menu-selected{{ end }}">
|
||||||
<a href="{{ .Path }}" class="pure-menu-link">{{ .Title }}</a>
|
<a href="{{ .Path }}" class="pure-menu-link">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<nav class="breadcrumbs" role="group" aria-label="Breadcrumbs">
|
<nav class="breadcrumbs" role="navigation" aria-label="Breadcrumbs">
|
||||||
{{ range .BaseContext.Crumbs }}
|
{{ range .BaseContext.Crumbs }}
|
||||||
<a class="{{ if .Active }}active{{ end }}" href="{{ .Path }}">{{ .Title }}</a>
|
<a class="{{ if .Active }}active{{ end }}" href="{{ .Path }}">{{ .Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<header>
|
|
||||||
<h1 id="top">{{ template "title" . }}</h1>
|
|
||||||
{{ block "header" . }}<!-- no header by default -->{{ end }}
|
|
||||||
</header>
|
|
||||||
<main>
|
|
||||||
<div class="pure-g">
|
|
||||||
{{ block "content" . }}content{{ end }}
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<footer>
|
<header>
|
||||||
{{ block "@custom/footer" .BaseContext }}
|
<h1 id="top">{{ template "title" . }}</h1>
|
||||||
|
{{ block "header" . }}<!-- no header by default -->{{ end }}
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
<div class="pure-g">
|
||||||
|
{{ block "content" . }}content{{ end }}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
{{ block "@custom/footer" .BaseContext }}
|
||||||
<div style="z-index:10000;position:fixed;top:0;left:0;width:100vh;height:100vw;background:red;text-align:center;padding:10vh 10vw;font-size:xx-large;font-weight:bold">
|
<div style="z-index:10000;position:fixed;top:0;left:0;width:100vh;height:100vw;background:red;text-align:center;padding:10vh 10vw;font-size:xx-large;font-weight:bold">
|
||||||
<code>.Custom.Template()</code> not called
|
<code>.Custom.Template()</code> not called
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
||||||
{{ block "scripts" . }}scripts{{ end }}
|
{{ block "scripts" . }}scripts{{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue