hugo-PaperMod/layouts/partials/header.html

30 lines
883 B
HTML
Raw Normal View History

2018-01-08 17:28:39 +01:00
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
2020-07-20 16:16:12 +02:00
<head>
2020-07-20 16:43:51 +02:00
{{- partial "head.html" . }}
2020-07-20 16:16:12 +02:00
</head>
2019-10-16 21:02:35 +02:00
2020-07-20 16:16:12 +02:00
<body class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home{{ end }}{{ end }}">
2019-10-15 22:15:16 +02:00
<script>
2020-07-20 16:16:12 +02:00
setTheme();
2019-10-15 22:15:16 +02:00
</script>
2019-03-31 14:32:06 +02:00
<header class="header">
2020-07-20 16:16:12 +02:00
<nav class="nav">
{{- if .IsHome }}
<h1 class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></h1>
{{- else }}
<p class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></p>
{{- end }}
{{- if .Site.Menus.main }}
<ul class="menu">
{{- range .Site.Menus.main }}
<li>
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{- end }}
</ul>
{{- end }}
</nav>
2019-03-31 14:32:06 +02:00
</header>
2020-07-20 16:16:12 +02:00
<main class="main">