Basic setup

This commit is contained in:
2026-05-06 08:59:14 +02:00
parent 3cc2d1bab9
commit 4d9bdb90c7
5 changed files with 54 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ block "description" . }}{{ with .Page.Description }}{{ . }}{{ else }}{{ .Page.Title }}{{ end }}{{ end }}">
<meta name="author" content="{{ block "author" . }}{{ .Site.Params.author }}{{ end }}">
<!-- Open Graph -->
<meta property="og:title" content="{{ block "og_title" . }}{{ .Page.Title }}{{ end }}">
<meta property="og:description" content="{{ block "og_description" . }}{{ with .Page.Description }}{{ . }}{{ else }}{{ .Page.Title }}{{ end }}{{ end }}">
<meta property="og:type" content="{{ block "og_type" . }}website{{ end }}">
<meta property="og:url" content="{{ .Page.Permalink }}">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{ with resources.Get "sass/main.scss" | toCSS }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
{{ block "head" . }}{{ end }}
</head>
<body>
<main>
{{ block "main" . }}{{ end }}
</main>
</body>
</html>
+12
View File
@@ -0,0 +1,12 @@
{{ define "main" }}
{{ .Content }}
<hr>
{{ range .Pages.ByDate }}
<a href="{{ .RelPermalink }}"><h2>{{ .Date.Format "2006-01-02" }}</h2></a>
{{ .Content }}
{{ end }}
{{ end }}
+8
View File
@@ -0,0 +1,8 @@
{{ define "title" }}SWP - {{ .Page.Title }}{{ end }}
{{ define "main" }}
<h2>{{ .Date.Format "2006-01-02" }}</h2>
{{ .Content }}
{{ end }}