init for the hugo site

This commit is contained in:
magmaus3 2023-08-09 19:27:08 +02:00
commit 4a54106436
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
16 changed files with 156 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{{ define "main" }}
<main>
<article>
<header>
<nav>
<a href="/">home</a>
<a href="..">go up</a>
</nav>
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>
</header>
<!-- "{{ .Content }}" pulls from the markdown content of the corresponding _index.md -->
{{ .Content }}
</article>
<ul>
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<li>
<a href="{{ .Permalink }}">
{{ if .Date }}{{ .Date.Format "2006-01-02" }} |{{ end }} {{ .Title }}
</a>
</li>
{{ end }}
</ul>
</main>
{{ end }}