From 35a8016fc40f35b5a47d9f140ae27145abbdcb46 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Sat, 21 Jan 2023 19:50:39 +0100 Subject: [PATCH] Create sitemap and fixed footer menu --- assets/main.scss | 26 ++++++++++++++----- .../turniersport/auslandsstart/index.md | 3 +++ .../angebote/turniersport/id-karte/index.md | 3 +++ .../page/angebote/turniersport/paare/index.md | 3 +++ content/page/info/sitemap/index.md | 11 ++++++++ themes/tsc_vfl/layouts/_default/sitemap.html | 10 +++++++ themes/tsc_vfl/layouts/partials/footer.html | 7 +++-- .../layouts/partials/sitemap-list.html | 12 +++++++++ 8 files changed, 64 insertions(+), 11 deletions(-) create mode 100644 content/page/info/sitemap/index.md create mode 100644 themes/tsc_vfl/layouts/_default/sitemap.html create mode 100644 themes/tsc_vfl/layouts/partials/sitemap-list.html diff --git a/assets/main.scss b/assets/main.scss index b7fdecc..0c3f267 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -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(); + } } } } diff --git a/content/page/angebote/turniersport/auslandsstart/index.md b/content/page/angebote/turniersport/auslandsstart/index.md index 08a037b..d0a7d24 100644 --- a/content/page/angebote/turniersport/auslandsstart/index.md +++ b/content/page/angebote/turniersport/auslandsstart/index.md @@ -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. diff --git a/content/page/angebote/turniersport/id-karte/index.md b/content/page/angebote/turniersport/id-karte/index.md index 081b6bd..ff54746 100644 --- a/content/page/angebote/turniersport/id-karte/index.md +++ b/content/page/angebote/turniersport/id-karte/index.md @@ -2,6 +2,9 @@ title: "ID-Karte" date: 2023-01-21T13:07:11+01:00 draft: false +menu: + main: + parent: turniersport --- ## Grundsaetzliches diff --git a/content/page/angebote/turniersport/paare/index.md b/content/page/angebote/turniersport/paare/index.md index f675358..8630136 100644 --- a/content/page/angebote/turniersport/paare/index.md +++ b/content/page/angebote/turniersport/paare/index.md @@ -2,6 +2,9 @@ title: "Paare" date: 2023-01-21T12:59:17+01:00 draft: false +menu: + main: + parent: turniersport --- | Name | Standard | Latein | diff --git a/content/page/info/sitemap/index.md b/content/page/info/sitemap/index.md new file mode 100644 index 0000000..7f6c48d --- /dev/null +++ b/content/page/info/sitemap/index.md @@ -0,0 +1,11 @@ +--- +title: "Sitemap" +date: 2023-01-21T19:18:11+01:00 +draft: true +layout: sitemap +menu: + main: + parent: info + weight: 4 +--- + diff --git a/themes/tsc_vfl/layouts/_default/sitemap.html b/themes/tsc_vfl/layouts/_default/sitemap.html new file mode 100644 index 0000000..2476f47 --- /dev/null +++ b/themes/tsc_vfl/layouts/_default/sitemap.html @@ -0,0 +1,10 @@ +{{ define "main" }} + +

{{ .Title }}

+
+ {{ .Content }} + + {{ partial "totop" }} +{{ end }} diff --git a/themes/tsc_vfl/layouts/partials/footer.html b/themes/tsc_vfl/layouts/partials/footer.html index 8d36f82..2f0e53f 100644 --- a/themes/tsc_vfl/layouts/partials/footer.html +++ b/themes/tsc_vfl/layouts/partials/footer.html @@ -2,10 +2,9 @@
TSC im VFL Sindelfinden
diff --git a/themes/tsc_vfl/layouts/partials/sitemap-list.html b/themes/tsc_vfl/layouts/partials/sitemap-list.html new file mode 100644 index 0000000..36b0c77 --- /dev/null +++ b/themes/tsc_vfl/layouts/partials/sitemap-list.html @@ -0,0 +1,12 @@ +{{ range . }} +
  • + + {{ .Title }} + + {{ with .Children }} + + {{ end }} +
  • +{{ end }}