Reorganize partials
This commit is contained in:
10
themes/tsc_vfl/layouts/partials/page/footer.html
Normal file
10
themes/tsc_vfl/layouts/partials/page/footer.html
Normal 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>
|
||||
12
themes/tsc_vfl/layouts/partials/page/head.html
Normal file
12
themes/tsc_vfl/layouts/partials/page/head.html
Normal 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>
|
||||
32
themes/tsc_vfl/layouts/partials/page/header.html
Normal file
32
themes/tsc_vfl/layouts/partials/page/header.html
Normal 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>
|
||||
16
themes/tsc_vfl/layouts/partials/page/left_menu.html
Normal file
16
themes/tsc_vfl/layouts/partials/page/left_menu.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user