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

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

View file

@ -0,0 +1,19 @@
{{ define "main" }}
<main class="big-container">
<header>
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
<div class="content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary"}}
{{ end }}
</div>
</main>
{{ end }}

View file

View file

@ -0,0 +1,8 @@
<head>
<title>{{ .Title }} | janw.name</title>
<meta name="generator" content="Hugo {{ hugo.Version }}">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link href="data:," rel="icon">
</head>

View file

@ -0,0 +1,35 @@
<header>
<a class="title" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
<span class="subtitle">{{ .Site.Params.subtitle }}</span>
<nav class="nav-container">
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
<a href="#">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
<ul class="sub-menu">
{{ range .Children }}
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
{{ else }}
{{ $menu_item_url := .URL | relLangURL }}
{{ $page_url:= $currentPage.RelPermalink | relLangURL }}
<li class="{{ if eq $menu_item_url $page_url }}active{{ end }}">
<a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
{{ end }}
</ul>
</nav>
</header>

View file

@ -0,0 +1,26 @@
{{ define "main" }}
<main class="big-container">
<article>
<header>
<h1>{{.Title}}</h1>
</header>
{{.Content}}
</article>
<ul class="projecttoc">
{{ range .Pages }}
<li>
<a class="sub-container" href="{{.Permalink}}">
{{if .Params.teaser}}
<div class="img-container">
<div class="img-container-child" style="background-image: url({{.Params.teaser}})">
</div>
</div>
{{end}}
<span>{{.Title}}</span>
</a>
</li>
{{ end }}
</ul>
</main>
{{ end }}

View file

@ -0,0 +1,28 @@
{{ define "main" }}
<section id="main" class="big-container">
<h1 id="title">{{ .Title }}</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>
</aside>
{{ end }}