neu
This commit is contained in:
parent
284b42d69d
commit
73f0c21453
19 changed files with 337 additions and 0 deletions
0
archetypes/.gitignore
vendored
Normal file
0
archetypes/.gitignore
vendored
Normal file
2
archetypes/default.md
Normal file
2
archetypes/default.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
+++
|
||||
+++
|
||||
0
layouts/.gitignore
vendored
Normal file
0
layouts/.gitignore
vendored
Normal file
21
layouts/404.html
Normal file
21
layouts/404.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!-- Header -->
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<!-- Head -->
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<!-- Navigation -->
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
<div class="container"><div class="child">
|
||||
<h1 id="{{ .LinkTitle }}">{{ .Title }}</h1>
|
||||
<p>
|
||||
Diese Seite wurde leider nicht gefunden.
|
||||
</p>
|
||||
</div></div>
|
||||
|
||||
<!-- Foot -->
|
||||
{{ partial "foot.html" . }}
|
||||
|
||||
<!-- Footer -->
|
||||
{{ partial "footer.html" . }}
|
||||
0
layouts/_default/.gitignore
vendored
Normal file
0
layouts/_default/.gitignore
vendored
Normal file
11
layouts/_default/baseof.html
Normal file
11
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
26
layouts/_default/list.html
Normal file
26
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!-- Header -->
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<!-- Head -->
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<!-- Navigation -->
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
<!-- Loop through all posts -->
|
||||
{{ range (where .Data.Pages.ByLastmod.Reverse "Section" "!=" "") }}
|
||||
<div class="container"><div class="child">
|
||||
<h1 id="{{ .LinkTitle }}">{{ .Title }} <span style="font-size:0.8em; font-weight:100;"><a class="nav" href="{{ .RelPermalink }}">→</a></span></h1>
|
||||
<p>
|
||||
{{ .Content }}
|
||||
</p>
|
||||
<div class="backtotop"><a class="nav" href="#top">↑</a></div>
|
||||
</div></div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Foot -->
|
||||
{{ partial "foot.html" . }}
|
||||
|
||||
<!-- Footer -->
|
||||
{{ partial "footer.html" . }}
|
||||
21
layouts/_default/single.html
Normal file
21
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!-- Header -->
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<!-- Head -->
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<!-- Navigation -->
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
<div class="container"><div class="child">
|
||||
<h1 id="{{ .LinkTitle }}">{{ .Title }}</h1>
|
||||
<p>
|
||||
{{ .Content }}
|
||||
</p>
|
||||
</div></div>
|
||||
|
||||
<!-- Foot -->
|
||||
{{ partial "foot.html" . }}
|
||||
|
||||
<!-- Footer -->
|
||||
{{ partial "footer.html" . }}
|
||||
21
layouts/index.html
Normal file
21
layouts/index.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!-- Header -->
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<!-- Head -->
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<!-- Navigation -->
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
<div class="container"><div class="child">
|
||||
<h1 id="{{ .LinkTitle }}">{{ .Title }}</h1>
|
||||
<p>
|
||||
{{ .Content }}
|
||||
</p>
|
||||
</div></div>
|
||||
|
||||
<!-- Foot -->
|
||||
{{ partial "foot.html" . }}
|
||||
|
||||
<!-- Footer -->
|
||||
{{ partial "footer.html" . }}
|
||||
0
layouts/partials/.gitignore
vendored
Normal file
0
layouts/partials/.gitignore
vendored
Normal file
3
layouts/partials/foot.html
Normal file
3
layouts/partials/foot.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<div class="container"><div class="child footer">
|
||||
|
||||
<a class="footer"href="/impressum">Impressum</a>
|
||||
1
layouts/partials/footer.html
Normal file
1
layouts/partials/footer.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
</body></html>
|
||||
10
layouts/partials/head.html
Normal file
10
layouts/partials/head.html
Normal file
File diff suppressed because one or more lines are too long
12
layouts/partials/header.html
Normal file
12
layouts/partials/header.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title> {{ if .IsHome }} {{ .Site.Title }} {{ else }} {{ .Title }} - {{ .Site.Title }} {{ end }} </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
|
||||
{{ partial "style.html" . }}
|
||||
|
||||
</head>
|
||||
<body>
|
||||
44
layouts/partials/navigation.html
Normal file
44
layouts/partials/navigation.html
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<div class="container"><div class="child navigation">
|
||||
|
||||
<p>
|
||||
{{ $currentPage := . }}
|
||||
{{ $list := (.Site.Menus.main) }}
|
||||
{{ $len := (len $list) }}
|
||||
{{ range $index, $element := $list }}
|
||||
<a class="navbar"{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}} href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
|
||||
|
||||
{{ if lt (add $index 1) $len }}
|
||||
•
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
<input id="toggle" type="checkbox"></input>
|
||||
<label for="toggle" class="hamburger">
|
||||
<div class="top-bun"></div>
|
||||
<div class="meat"></div>
|
||||
<div class="bottom-bun"></div>
|
||||
</label>
|
||||
|
||||
|
||||
<div class="nav">
|
||||
<div class="nav-wrapper">
|
||||
<nav>
|
||||
|
||||
{{ range where .Site.Pages "Section" .Section }}
|
||||
<a class="navbar" href="{{ .Permalink }}">{{ .Title }}</a><br />
|
||||
{{ end }}
|
||||
|
||||
<p> </p><p> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div></div>
|
||||
144
layouts/partials/style.html
Normal file
144
layouts/partials/style.html
Normal file
|
|
@ -0,0 +1,144 @@
|
|||
<style>
|
||||
|
||||
html {
|
||||
background: url(/bg.jpg) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #000;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: sans-serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
|
||||
h1 {font-size: 1.3em;}
|
||||
h2 {font-size: 1.1em;}
|
||||
p {text-align: justify;}
|
||||
img {width: 100%; max-width: 1200px;}
|
||||
|
||||
a:link {color: hotpink; text-decoration: none;}
|
||||
a:visited {color: hotpink; text-decoration: none;}
|
||||
a:hover {text-decoration: underline;}
|
||||
a.navbar:link {color: black; text-decoration: none;}
|
||||
a.navbar:visited {color: black; text-decoration: none;}
|
||||
a.navbar:hover {text-decoration: underline;}
|
||||
a.footer:link {color: #aaa; text-decoration: none;}
|
||||
a.footer:visited {color: #aaa; text-decoration: none;}
|
||||
a.footer:hover {text-decoration: underline;}
|
||||
|
||||
#toggle {
|
||||
display: none;
|
||||
}
|
||||
/**
|
||||
Hamburger
|
||||
**/
|
||||
.hamburger {
|
||||
position: relative;
|
||||
top: -1em;
|
||||
left: 98%;
|
||||
display:inline-block;
|
||||
margin-left: -2em;
|
||||
margin-top: -45px;
|
||||
width: 2em;
|
||||
height: 45px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.hamburger div {
|
||||
position: relative;
|
||||
width: 3em;
|
||||
height: 7px;
|
||||
border-radius: 3px;
|
||||
background-color: #999; /* #cc6600*/
|
||||
margin-top: 8px;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
/**
|
||||
Nav Styles
|
||||
**/
|
||||
.nav {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(255, 255, 255, 0.7);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
top: -100%; left: 0; right: 0; bottom: 0;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s ease-in-out;
|
||||
transform: scale(0);
|
||||
}
|
||||
|
||||
.nav-wrapper {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
text-align: left;
|
||||
margin-top:3em;
|
||||
margin-bottom: 3em;
|
||||
margin-left: 25%;
|
||||
}
|
||||
|
||||
nav a {
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
color: green;
|
||||
font-size: 1.4em;
|
||||
display: inline-block;
|
||||
margin-top: 1em;
|
||||
transition: color 0.2s ease-in-out;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.container {font-family: sans-serif; font-size: 1em; width: 100%; margin: 5px 0px}
|
||||
.child {width: 90%; max-width: 1200px; padding: 0px 20px; background-color: rgba(255, 255, 255, 0.9); margin: 0 auto; border: solid 4px #D6ED17; border-radius: 30px;}
|
||||
.backtotop {background-color: hotpink; clip-path: circle(1em); line-height: 2em; text-align:center;}
|
||||
|
||||
.header {background-color: rgba(255, 255, 255, 1.0); }
|
||||
.footer {background-color: rgba(255, 255, 255, 1.0); }
|
||||
.navigation {background-color: rgba(255, 255, 255, 1.0); min-height:45px;}
|
||||
|
||||
|
||||
/**
|
||||
Animations
|
||||
**/
|
||||
#toggle:checked + .hamburger .top-bun {
|
||||
transform: rotate(-45deg);
|
||||
margin-top: 25px;
|
||||
background-color: black;
|
||||
}
|
||||
#toggle:checked + .hamburger .bottom-bun {
|
||||
opacity: 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
#toggle:checked + .hamburger .meat {
|
||||
transform: rotate(45deg);
|
||||
margin-top: -7px;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#toggle:checked + .hamburger + .nav {
|
||||
top: 0;
|
||||
transform: scale(1);
|
||||
}
|
||||
#toggle:checked + .hamburger + .container {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
0
static/.gitignore
vendored
Normal file
0
static/.gitignore
vendored
Normal file
BIN
static/bg.jpg
Normal file
BIN
static/bg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 323 KiB |
21
theme.toml
Normal file
21
theme.toml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# theme.toml template for a Hugo theme
|
||||
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
||||
|
||||
name = "Gribble"
|
||||
license = "CC-BY 4.0"
|
||||
licenselink = "https://git.gruener-salat.de/edi/hugo-gribble/src/branch/main/LICENSE"
|
||||
description = ""
|
||||
homepage = "https://git.gruener-salat.de/edi/hugo-gribble"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.41.0"
|
||||
|
||||
[author]
|
||||
name = "Edi Grüner"
|
||||
homepage = ""
|
||||
|
||||
# If porting an existing theme
|
||||
[original]
|
||||
name = ""
|
||||
homepage = ""
|
||||
repo = ""
|
||||
Loading…
Reference in a new issue