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,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/index.css" rel="stylesheet">
</head>
<body>
{{ block "main" . }}
content goes here
{{ end }}
</body>
</html>

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 }}

View file

@ -0,0 +1,10 @@
{{ define "main" }}
<article>
<a href="..">go up</a>
<header>
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>
</header>
{{ .Content }}
</article>
{{ end }}

View file

@ -0,0 +1,11 @@
{{ define "main" }}
<main>
<div>
<h1>{{ .Title }}</h1>
<!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
{{ range .Pages }}
{{ .Render "summary" }}
{{ end }}
</div>
</main>
{{ end }}