Added list template
This commit is contained in:
parent
0384ae4bfb
commit
5b94b9debd
|
@ -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" . }}
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
|
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
|
||||||
$el.classList.toggle('is-active');
|
$el.classList.toggle('is-active');
|
||||||
$target.classList.toggle('is-active');
|
$target.classList.toggle(' is-active');
|
||||||
|
|
||||||
|
|
||||||
document.getElementById('navbar-background').classList.toggle('is-active');
|
document.getElementById('navbar-background').classList.toggle('is-active');
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<ul class="menu-list">
|
<ul class="menu-list">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li>
|
<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 }}
|
{{ .Pre }}
|
||||||
{{ .Name }}
|
{{ .Name }}
|
||||||
</a>
|
</a>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .URL | relLangURL }}">
|
<a href="{{ .URL }}">
|
||||||
{{ .Pre }}
|
{{ .Pre }}
|
||||||
{{ .Name }}
|
{{ .Name }}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user