Create initial version
This commit is contained in:
0
themes/tsc_vfl/layouts/404.html
Normal file
0
themes/tsc_vfl/layouts/404.html
Normal file
18
themes/tsc_vfl/layouts/_default/baseof.html
Normal file
18
themes/tsc_vfl/layouts/_default/baseof.html
Normal 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>
|
||||
13
themes/tsc_vfl/layouts/_default/list.html
Normal file
13
themes/tsc_vfl/layouts/_default/list.html
Normal 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 }}
|
||||
4
themes/tsc_vfl/layouts/_default/single.html
Normal file
4
themes/tsc_vfl/layouts/_default/single.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
5
themes/tsc_vfl/layouts/index.html
Normal file
5
themes/tsc_vfl/layouts/index.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<div id="home-jumbotron" class="jumbotron text-center">
|
||||
<h1 class="title">{{ .Site.Title }}</h1>
|
||||
</div>
|
||||
{{ end }}
|
||||
11
themes/tsc_vfl/layouts/partials/footer.html
Normal file
11
themes/tsc_vfl/layouts/partials/footer.html
Normal 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>
|
||||
12
themes/tsc_vfl/layouts/partials/head.html
Normal file
12
themes/tsc_vfl/layouts/partials/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.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>
|
||||
27
themes/tsc_vfl/layouts/partials/header.html
Normal file
27
themes/tsc_vfl/layouts/partials/header.html
Normal 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>
|
||||
29
themes/tsc_vfl/layouts/partials/left_menu.html
Normal file
29
themes/tsc_vfl/layouts/partials/left_menu.html
Normal 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 }}
|
||||
11
themes/tsc_vfl/layouts/partials/metadata.html
Normal file
11
themes/tsc_vfl/layouts/partials/metadata.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user