add projects page; move to hugo;
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 1m59s

This commit is contained in:
2026-02-12 14:38:32 +01:00
parent 6c2b475e10
commit ecd83d9b79
31 changed files with 1117 additions and 140 deletions

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="de">
<head>
{{- partial "head.html" . -}}
</head>
<body>
{{ block "main" . }}{{ end }}
</body>
</html>

View File

@@ -0,0 +1,28 @@
{{ define "main" }}
{{- partial "background.html" . -}}
<main class="page-content">
<h1>{{ .Title }}</h1>
<div class="project-grid">
{{ range .Pages.ByDate.Reverse }}
<a href="{{ .RelPermalink }}" class="project-card">
{{ with .Params.image }}
<img src="{{ . }}" alt="{{ $.Title }}" />
{{ end }}
<h2>{{ .Title }}</h2>
<p class="tags">
{{ range .Params.tags }}
<span class="tag">{{ . }}</span>
{{ end }}
</p>
<p>{{ .Params.summary }}</p>
</a>
{{ end }}
</div>
<div class="back-link">
<a href="/">← back</a>
</div>
</main>
{{ end }}

View File

@@ -0,0 +1,26 @@
{{ define "main" }}
{{- partial "background.html" . -}}
<main class="page-content">
<h1>{{ .Title }}</h1>
<p class="tags">
{{ range .Params.tags }}
<span class="tag">{{ . }}</span>
{{ end }}
</p>
<div class="project-links">
{{ with .Params.code }}<a href="{{ . }}">[Code]</a>{{ end }}
{{ with .Params.demo }}<a href="{{ . }}">[Live Demo]</a>{{ end }}
</div>
<article class="project-body">
{{ .Content }}
</article>
<div class="back-link">
<a href="/projects/">← all projects</a>
</div>
</main>
{{ end }}