forked from tsc-vfl/hugo-page
Create sitemap and fixed footer menu
This commit is contained in:
parent
510c1a6a4c
commit
35a8016fc4
@ -5,6 +5,19 @@ $color_red: #cd1013;
|
||||
|
||||
$gap_columns_persons: 25px;
|
||||
|
||||
|
||||
/* Mixins */
|
||||
|
||||
@mixin menu-style () {
|
||||
font-family: 'Open Sans Condensed', sans-serif;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
|
||||
&.active, &:hover {
|
||||
color: $color_red;
|
||||
}
|
||||
}
|
||||
|
||||
/* main styling */
|
||||
|
||||
body {
|
||||
@ -75,12 +88,7 @@ h1 {
|
||||
a {
|
||||
margin: 0 40px 0 0;
|
||||
// height: 100%;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
|
||||
&.active {
|
||||
color: $color_red;
|
||||
}
|
||||
@include menu-style;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -112,7 +120,7 @@ h1 {
|
||||
color: black;
|
||||
background-color: #ececec;
|
||||
|
||||
&.active {
|
||||
&.active, &:hover {
|
||||
background-color: $color_red;
|
||||
color: white;
|
||||
}
|
||||
@ -203,6 +211,10 @@ h1 {
|
||||
> li {
|
||||
list-style: none;
|
||||
margin-left: 1em;
|
||||
|
||||
a {
|
||||
@include menu-style();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,9 @@
|
||||
title: "Auslandsstart"
|
||||
date: 2023-01-21T13:06:43+01:00
|
||||
draft: false
|
||||
menu:
|
||||
main:
|
||||
parent: turniersport
|
||||
---
|
||||
|
||||
Grundsätzlich dürfen Paare, die beim DTV Mitglied sind, zunächst einmal nur an Turnieren des DTVs teilnehmen.
|
||||
|
@ -2,6 +2,9 @@
|
||||
title: "ID-Karte"
|
||||
date: 2023-01-21T13:07:11+01:00
|
||||
draft: false
|
||||
menu:
|
||||
main:
|
||||
parent: turniersport
|
||||
---
|
||||
|
||||
## Grundsaetzliches
|
||||
|
@ -2,6 +2,9 @@
|
||||
title: "Paare"
|
||||
date: 2023-01-21T12:59:17+01:00
|
||||
draft: false
|
||||
menu:
|
||||
main:
|
||||
parent: turniersport
|
||||
---
|
||||
|
||||
| Name | Standard | Latein |
|
||||
|
11
content/page/info/sitemap/index.md
Normal file
11
content/page/info/sitemap/index.md
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
title: "Sitemap"
|
||||
date: 2023-01-21T19:18:11+01:00
|
||||
draft: true
|
||||
layout: sitemap
|
||||
menu:
|
||||
main:
|
||||
parent: info
|
||||
weight: 4
|
||||
---
|
||||
|
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 }}
|
Loading…
Reference in New Issue
Block a user