aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer.html11
-rw-r--r--layouts/partials/header.html25
2 files changed, 36 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..e420ffc
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,11 @@
+ <footer>
+ <div class="box">
+ <div class="content">
+ {{ with .Site.Params.footer }}
+ {{ . | markdownify }}
+ {{ end }}
+ </div>
+ </div>
+ </footer>
+ </body>
+</html>
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>