aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2019-12-18 01:04:15 -0500
committerMatt Kohls <mattkohls13@gmail.com>2019-12-18 01:04:15 -0500
commit6c53b50ec3afaabbe3f09c6e838baf63e17499b1 (patch)
tree8044f943886c78db68ff4c860ba8f5b918bebb28 /layouts/partials/header.html
downloadsimplesource-6c53b50ec3afaabbe3f09c6e838baf63e17499b1.tar.gz
simplesource-6c53b50ec3afaabbe3f09c6e838baf63e17499b1.tar.bz2
simplesource-6c53b50ec3afaabbe3f09c6e838baf63e17499b1.zip
Mostly working initial stuff
TODO: CSS needs to be defined Index page lists about page when it shouldn't
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..b7422da
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,25 @@
+<!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/style.css" | relURL }}">
+ </head>
+
+ <body>
+ <div>
+ <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>
+ </div>