summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorRomeo Disca <romeo.disca@gmail.com>2019-05-16 20:57:18 +0200
committerRomeo Disca <romeo.disca@gmail.com>2019-05-16 20:57:18 +0200
commitadcb4eaebfccab66ad62bafdc029022353c1a263 (patch)
treed76ef256f24e616bd7965bcccffcb9669f3a756c /themes
parent2603808bbda0a676585acb0ea624161eaa594765 (diff)
add navigation
Diffstat (limited to 'themes')
-rw-r--r--themes/rusticus/layouts/partials/header/header.html8
-rw-r--r--themes/rusticus/layouts/partials/header/navigation.html7
2 files changed, 8 insertions, 7 deletions
diff --git a/themes/rusticus/layouts/partials/header/header.html b/themes/rusticus/layouts/partials/header/header.html
index 98a7158..c555110 100644
--- a/themes/rusticus/layouts/partials/header/header.html
+++ b/themes/rusticus/layouts/partials/header/header.html
@@ -28,13 +28,7 @@
<body>
<header>
- <nav>
- <ul>
- <li><a href="#">knowledge base</a></li>
- <li><a href="#">news</a></li>
- <li><a href="#">blog</a></li>
- </ul>
- </nav>
+ {{ partial "header/navigation.html" . }}
</header>
<div class="container">
diff --git a/themes/rusticus/layouts/partials/header/navigation.html b/themes/rusticus/layouts/partials/header/navigation.html
new file mode 100644
index 0000000..f2ca7d8
--- /dev/null
+++ b/themes/rusticus/layouts/partials/header/navigation.html
@@ -0,0 +1,7 @@
+<nav>
+ <ul>
+ {{ range .Site.Menus.main }}
+ <li><a href="{{ .URL }}" title="{{ .Title }}">{{ lower .Name }}</a></li>
+ {{ end }}
+ </ul>
+</nav>