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