Create initial version

This commit is contained in:
2023-01-19 18:21:20 +01:00
commit 31a1ae2b30
36 changed files with 1156 additions and 0 deletions

View File

View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
<div id="wrapper">
{{- partial "header.html" . -}}
<div class="main">
<div class="left-menu">
{{- partial "left_menu" . -}}
</div>
<div id="content">
{{- block "main" . }}{{- end }}
</div>
</div>
{{- partial "footer.html" . -}}
</div>
</body>
</html>

View File

@@ -0,0 +1,13 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<!--{{ range .Pages.ByPublishDate.Reverse }}
<p>
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{ partial "metadata.html" . }}
<a class="summary" href="{{ .RelPermalink }}">
<p>{{ .Summary }}</p>
</a>
</p>
{{ end }}-->
{{ end }}

View File

@@ -0,0 +1,4 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}

View File

@@ -0,0 +1,5 @@
{{ define "main" }}
<div id="home-jumbotron" class="jumbotron text-center">
<h1 class="title">{{ .Site.Title }}</h1>
</div>
{{ end }}

View File

@@ -0,0 +1,11 @@
<div id="footer">
<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>
</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.Permalink }}">
{{/* <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"> */}}
<link rel="stylesheet" type="text/css" href="{{ relURL "css/main.css" }}">
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
</head>

View File

@@ -0,0 +1,27 @@
<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" }}">
</div>
<div id="nav-border" class="container nav">
<nav id="nav" class="nav justify-content-center">
{{ range .Site.Menus.main }}
<a class="nav-link" 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,29 @@
{{ $currentPage := .Page }}
{{ range .Site.Menus.main }}
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
{{ if .HasChildren }}
{{ range .Children }}
{{ $submenu := "" }}
{{ if $currentPage.IsMenuCurrent "main" . }}
{{ $submenu = " active"}}
{{ end }}
<a href="{{ .URL }}" class="{{ $submenu }}">
{{ print .Name | safeHTML }}
</a>
{{ end }}
{{ end }}
{{ end }}
<!--<a class="nav-link" href="{{ .URL }}">
{{/*{{ if .Pre }}
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}
{{ $icon }}
{{ end }}*/}}
{{ $text := print .Name | safeHTML }}
{{ $text }}
</a>
{{ if .HasChildren }}
{{ range .Children }}
{{ .Name }}
{{ end }}
{{ end }} -->
{{ end }}

View File

@@ -0,0 +1,11 @@
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<i data-feather="calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
<i data-feather="tag"></i>
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
{{ end }}
{{ end }}