aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2020-06-06 18:16:00 -0400
committerMatt Kohls <mattkohls13@gmail.com>2020-06-06 18:16:00 -0400
commit0da6ee8846f597ac897646a2f33521a1efe0655c (patch)
treefb927345bbe9306a9f0efe5eeb4b080442974a16 /layouts/partials/header.html
downloadpagedown-0da6ee8846f597ac897646a2f33521a1efe0655c.tar.gz
pagedown-0da6ee8846f597ac897646a2f33521a1efe0655c.tar.bz2
pagedown-0da6ee8846f597ac897646a2f33521a1efe0655c.zip
Initial work on theme
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..3aa09f4
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{{ .Title }} | {{ .Site.Title }}</title>
+ <link rel="stylesheet" href="{{ "/css/pagedown.css" | relURL }}">
+ </head>
+
+ <body>
+ <header>
+ <nav>
+ {{ $title := .Site.Title }}
+ {{ range $menuItem := .Site.Menus.main }}
+ {{ if eq $menuItem.Name "Home" }}
+ <a class="brand" href="{{ $menuItem.URL | relURL }}">
+ {{ $title }}
+ {{ else }}
+ <a href="{{ $menuItem.URL | relURL }}">
+ {{ $menuItem.Name }}
+ {{ end }}
+ </a>
+ {{ end }}
+ </nav>
+ <hr>
+ </header>