This commit is contained in:
2026-06-13 00:09:28 +02:00
parent 9b230a08a9
commit 6f6be79647
20 changed files with 219 additions and 227 deletions

View File

@@ -1,13 +1,5 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>{{ .Site.Title }}</title>
</head>
<body>
<h1>{{ .Site.Title}}</h1>
<h2>{{ .Title }}</h2>
{{ .Content }}
</body>
</html>
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ .Content }}
{{ end }}

View File

@@ -1 +1,3 @@
<p>Copyright {{ now.Year }}. All rights reserved.</p>
<p>Impressum: Thomas Sindt * Auf dem Born 7 * 28832 Achim</p>

View File

@@ -1,5 +1,5 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Site.Title }}</title>
<link rel="stylesheet" href="{{ "css/style.css" | relURL}}">

View File

@@ -1,2 +1,10 @@
<h1>{{ site.Title }}</h1>
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}
<header>
<h1>{{ .Site.Title }}</h1>
</header>
<nav>
<a href="/">Home</a>
<a href="/about">About</a>
<a href="/contact">Contact</a>
</nav>

View File

@@ -4,6 +4,7 @@
{{ partial "head.html" . }}
</head>
<body>
<div class = "container">
<header>
{{ partial "header.html" . }}
</header>
@@ -13,5 +14,6 @@
<footer>
{{ partial "footer.html" . }}
</footer>
</div>
</body>
</html>

View File

@@ -1,12 +1,4 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>{{ .Site.Title }}</title>
</head>
<body>
<h1>{{ .Site.Title}}</h1>
{{ .Content }}
</body>
</html>
{{define "main"}}
{{.Content}}
{{end}}

View File

@@ -0,0 +1,25 @@
.container {
margin: 0, auto;
width: 80%;
}
nav,footer {
background-color: #333;
color: #fff;
text-align: center;
}
nav {
display: flex;
flex-direction: column;
}
nav > a {
flex: 1;
text-align: center;
text-decoration: none;
color: #fff; }
@media only screen and (min-width: 768px) {
nav { flex-direction: row;
}
}