about summary refs log tree commit diff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..f9a00a9
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,13 @@
+<nav>
+<a class="site-title" href="{{ .Site.BaseURL | relLangURL }}">
+    {{ .Site.Title }}
+</a>
+{{ if .Site.Menus.main }}
+{{ $currentPage := . }}
+{{ range .Site.Menus.main }}
+<a class="{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
+{{ end }}
+{{ end }}
+</nav>
+<h1 class="p-name post-title{{ if .Params.draft }} draft{{end}}">{{ trim .Title  " " }}</h1>
+{{ partial "post-language-switcher.html" . }}