initial commit

This commit is contained in:
Jan Wolff 2022-11-05 20:00:03 +01:00
commit f6b4208301
116 changed files with 1156 additions and 0 deletions

View file

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

View file

@ -0,0 +1,21 @@
{{ define "main" }}
<main class="big-container">
<article>
<header>
<h1>{{.Title}}</h1>
</header>
{{.Content}}
</article>
<ul class="blogtoc">
{{ range .Pages }}
<li>
<a class="sub-container" href="{{.Permalink}}">
<span>{{.Date.Format "02. January 2006"}}</span><br>
<span>{{.Title}}</span>
</a>
</li>
{{ end }}
</ul>
</main>
{{ end }}

View file

@ -0,0 +1,36 @@
{{ define "main" }}
<section id="main" class="big-container">
<h1 id="title">{{ .Title }} ({{ .Date.Format "2. January 2006" }})</h1>
<div>
<article id="content">
{{ .Content }}
</article>
</div>
</section>
<aside id="meta" class="big-container">
<div>
{{ with .Params.topics }}
<ul id="topics">
{{ range . }}
<li><a href="{{ "topics" | absURL}}{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
{{ end }}
{{ with .Params.tags }}
<ul id="tags">
{{ range . }}
<li> <a href="{{ "tags" | absURL }}{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
{{ end }}
</div>
<div>
{{ with .NextInSection }}
<p>Next: <a class="next" href="{{.Permalink}}"> {{.Title}}</a></p>
{{ end }}
{{ with .PrevInSection }}
<p>Previous: <a class="previous" href="{{.Permalink}}"> {{.Title}}</a></p>
{{ end }}
</div>
</aside>
{{ end }}