diff options
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 26 |
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> |