BIT-101 Creating a Hugo Theme Part 2 done

This commit is contained in:
Franz Klotsche
2025-11-05 18:09:14 +01:00
commit b6fc1d45e0
40 changed files with 827 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<!-- this is a generic base template = KISS -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Sum something up</title>
</head>
<body>
<a href="/">Home</a>
<a href="/page">LL-CAT</a>
<a href="/tags">Ports and Apps</a>
{{ block "main" . }}
{{ end }}
</body>
</html>

View File

@@ -0,0 +1,11 @@
{{ define "main" }}
<ul>
{{ range .Pages.ByPublishDate.Reverse }}
<li>
<a href="{{ .RelPermalink }}">
{{ .Title }}
</a>
</li>
{{ end }}
</ul>
{{ end }}

View File

@@ -0,0 +1,5 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<p>{{ .PublishDate }}</p>
<div>{{ .Content }}</div>
{{ end }}