PaperModX/layouts/partials/header.html

30 lines
883 B
HTML
Raw Normal View History

2018-01-08 16:28:39 +00:00
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
2020-07-20 15:16:12 +01:00
<head>
2020-07-20 15:43:51 +01:00
{{- partial "head.html" . }}
2020-07-20 15:16:12 +01:00
</head>
2019-10-16 20:02:35 +01:00
2020-07-20 15:16:12 +01:00
<body class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home{{ end }}{{ end }}">
2019-10-15 21:15:16 +01:00
<script>
2020-07-20 15:16:12 +01:00
setTheme();
2019-10-15 21:15:16 +01:00
</script>
2019-03-31 13:32:06 +01:00
<header class="header">
2020-07-20 15:16:12 +01: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 13:32:06 +01:00
</header>
2020-07-20 15:16:12 +01:00
<main class="main">