This commit is contained in:
jonnybravo
2026-09-08 11:02:29 +02:00
commit 3ad8c9b5a6
66 changed files with 6169 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<html lang="{{ .Site.Language.Locale }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
{{ partial "header.html" . }}
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
</body>
</html>
+19
View File
@@ -0,0 +1,19 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ with .Site.Params.description }}<p class="subtitle">{{ . }}</p>{{ end }}
<div class="post-grid">
{{ range .Pages }}
<article class="card">
<time>{{ .Date.Format "02.01.2006" }}</time>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<p>{{ .Summary | plainify | truncate 200 }}</p>
{{ with .Params.tags }}
<div class="tags">
{{ range . }}<span class="tag">{{ . }}</span>{{ end }}
</div>
{{ end }}
</article>
{{ end }}
</div>
{{ end }}
+21
View File
@@ -0,0 +1,21 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
<description>{{ .Site.Params.description }}</description>
<generator>Hugo {{ hugo.Version }}</generator>
<language>{{ .Site.Language.Locale }}</language>
<lastBuildDate>{{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
<atom:link href="{{ "index.xml" | absURL }}" rel="self" type="application/rss+xml"/>
{{ range .Pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<guid>{{ .Permalink }}</guid>
<description>{{ .Summary | plainify | truncate 300 }}</description>
</item>
{{ end }}
</channel>
</rss>
+19
View File
@@ -0,0 +1,19 @@
{{ define "main" }}
<article>
<header class="article-header">
<h1>{{ .Title }}</h1>
{{ with .Date }}<time datetime="{{ .Format "2006-01-02" }}">{{ .Format "02.01.2006" }}</time>{{ end }}
{{ with .Params.tags }}
<div class="tags">
{{ range . }}<span class="tag">{{ . }}</span>{{ end }}
</div>
{{ end }}
</header>
{{ partial "toc.html" . }}
<div class="content">
{{ .Content }}
</div>
</article>
{{ end }}
+3
View File
@@ -0,0 +1,3 @@
<footer>
<p>{{ .Site.Title }} – <a href="{{ "index.xml" | relURL }}">RSS</a></p>
</footer>
+20
View File
@@ -0,0 +1,20 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} – {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Summary }}{{ . | plainify | truncate 160 }}{{ else }}{{ .Site.Params.description }}{{ end }}{{ end }}">
<!-- Open Graph -->
<meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} – {{ .Site.Title }}{{ end }}">
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Summary }}{{ . | plainify | truncate 160 }}{{ else }}{{ .Site.Params.description }}{{ end }}{{ end }}">
<meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:site_name" content="{{ .Site.Title }}">
<!-- CSS -->
{{ $css := resources.Get "css/main.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
<!-- RSS -->
{{ with .OutputFormats.Get "rss" }}
<link rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" href="{{ .RelPermalink }}">
{{ end }}
+8
View File
@@ -0,0 +1,8 @@
<header>
<a href="/" class="logo">{{ .Site.Title }}</a>
{{ if not .IsHome }}
<nav aria-label="Breadcrumb">
<a href="/">← Start</a>
</nav>
{{ end }}
</header>
+4
View File
@@ -0,0 +1,4 @@
<details class="toc" {{ if gt (len .Fragments.Headings) 2 }}open{{ end }}>
<summary>Inhaltsverzeichnis</summary>
{{ .TableOfContents }}
</details>