Reorganize partials

This commit is contained in:
2023-01-21 23:29:45 +01:00
parent fada6a77ab
commit 085096a8fe
5 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
<div id="footer">
<div class="first-entry">TSC im VFL Sindelfinden</div>
<div class="last-entry meta-menu">
<ul>
<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>

View File

@@ -0,0 +1,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
{{ $scss := resources.Get "main.scss" | resources.ToCSS $options }}
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}">
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
<script defer src="{{ relURL "js/slider.js" }}"></script>
</head>

View File

@@ -0,0 +1,32 @@
<div id="header">
<div class="logo-row">
<a href="/" class="logo">
<img src="{{ relURL "img/logo.jpg" }}">
</a>
<a href="https://www.vfl-sindelfingen.de/" class="logo-vfl">
<img src="{{ relURL "img/logo_vfl.gif" }}">
</a>
</div>
<div class="slider">
<img src="{{ relURL "img/banner/Banner-RENOTE.jpg" }}">
<img src="{{ relURL "img/banner/Banner-Show2016.jpg" }}" class="hidden">
<img src="{{ relURL "img/banner/Banner2019.jpg" }}" class="hidden">
<img src="{{ relURL "img/banner/Fotobanner2.jpg" }}" class="hidden">
<img src="{{ relURL "img/banner/Paare_2019.jpg" }}" class="hidden">
<img src="{{ relURL "img/banner/slider-turnier.jpg" }}" class="hidden">
</div>
<div id="nav-border" class="container nav">
<nav id="nav" class="nav justify-content-center">
{{ range .Site.Menus.main }}
<a class="nav-link{{ if or ($.Page.IsMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .) }} active{{ end }}" href="{{ .URL }}">
{{/*{{ if .Pre }}
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}
{{ $icon }}
{{ end }}*/}}
{{ $text := print .Name | safeHTML }}
{{ $text }}
</a>
{{ end }}
</nav>
</div>
</div>

View File

@@ -0,0 +1,16 @@
{{ $currentPage := .Page }}
{{ range .Site.Menus.main }}
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
{{ if .HasChildren }}
{{ range .Children }}
{{ $submenu := "" }}
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
{{ $submenu = " active"}}
{{ end }}
<a href="{{ .URL }}" class="{{ $submenu }}">
{{ print .Name | safeHTML }}
</a>
{{ end }}
{{ end }}
{{ end }}
{{ end }}