bit-101 Part 3 + config.toml (hugo.toml)

This commit is contained in:
Franz Klotsche
2025-11-05 21:00:45 +01:00
parent b6fc1d45e0
commit 9b763448d3
14 changed files with 335 additions and 16 deletions

Binary file not shown.

View File

@@ -1,17 +1,12 @@
<!-- 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>
{{- partial "head.html" . -}}
<body>
<a href="/">Home</a>
<a href="/page">LL-CAT</a>
<a href="/tags">Ports and Apps</a>
{{ block "main" . }}
{{ end }}
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

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

View File

@@ -1,5 +1,8 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<p>{{ .PublishDate }}</p>
{{ if .Params.Tags }}
Tags: {{ partial "tags.html" . -}}
{{ end }}
<div>{{ .Content }}</div>
{{ end }}