forked from tsc-vfl/hugo-page
Create sitemap and fixed footer menu
This commit is contained in:
10
themes/tsc_vfl/layouts/_default/sitemap.html
Normal file
10
themes/tsc_vfl/layouts/_default/sitemap.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<a name="top">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</a>
|
||||
{{ .Content }}
|
||||
<ul class="sitemap">
|
||||
{{ partial "sitemap-list" .Site.Menus.main }}
|
||||
</ul>
|
||||
{{ partial "totop" }}
|
||||
{{ end }}
|
||||
@@ -2,10 +2,9 @@
|
||||
<div class="first-entry">TSC im VFL Sindelfinden</div>
|
||||
<div class="last-entry meta-menu">
|
||||
<ul>
|
||||
<li>Impressum</li>
|
||||
<li>Sitemap</li>
|
||||
<li>Kontakt</li>
|
||||
<li>Datenschutz</li>
|
||||
<li><a href="{{ relref . "page/club/impressum" }}">Impressum & Datenschutz</a></li>
|
||||
<li><a href="{{ relref . "page/info/sitemap" }}">Sitemap</a></li>
|
||||
<li><a href="{{ relref . "page/info" }}">Kontakt</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
12
themes/tsc_vfl/layouts/partials/sitemap-list.html
Normal file
12
themes/tsc_vfl/layouts/partials/sitemap-list.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ range . }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
{{ with .Children }}
|
||||
<ul>
|
||||
{{ partial "sitemap-list" . }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user