Added list template

This commit is contained in:
konrad 2019-02-12 19:38:42 +01:00
parent 0384ae4bfb
commit 5b94b9debd
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,28 @@
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<div class="container is-centered page">
<div class="columns">
<div class="column is-one-quarter">
{{ partial "menu" . }}
</div>
<div class="column">
<div class="content">
{{ .Content }}
{{ range .Pages.GroupBy "Section" }}
<h3>{{ .Key | title }}</h3>
<ul>
{{ range .Pages }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
</div>
</div>
{{ partial "footer.html" . }}

View File

@ -35,7 +35,7 @@
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
$el.classList.toggle('is-active');
$target.classList.toggle('is-active');
$target.classList.toggle(' is-active');
document.getElementById('navbar-background').classList.toggle('is-active');

View File

@ -8,7 +8,7 @@
<ul class="menu-list">
{{ range .Children }}
<li>
<a href="{{ .URL | relLangURL }}" {{ if $currentNode.IsMenuCurrent "sidebar" . }}class="is-active"{{ end }}>
<a href="{{ .URL }}" {{ if $currentNode.IsMenuCurrent "sidebar" . }}class="is-active"{{ end }}>
{{ .Pre }}
{{ .Name }}
</a>
@ -17,7 +17,7 @@
</ul>
{{ else }}
<li>
<a href="{{ .URL | relLangURL }}">
<a href="{{ .URL }}">
{{ .Pre }}
{{ .Name }}
</a>