summaryrefslogtreecommitdiffstats
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
parent2603808bbda0a676585acb0ea624161eaa594765 (diff)
add navigation
-rw-r--r--content/_index.md6
-rw-r--r--content/blog/_index.md4
-rw-r--r--content/knowledge-base/_index.md17
-rw-r--r--content/news/_index.md4
-rw-r--r--themes/rusticus/layouts/partials/header/header.html8
-rw-r--r--themes/rusticus/layouts/partials/header/navigation.html7
6 files changed, 39 insertions, 7 deletions
diff --git a/content/_index.md b/content/_index.md
index cc81eb5..4c156f5 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -2,4 +2,10 @@
title: Rust Community Stuttgart
+menu:
+ main:
+ name: "Home"
+ url: "/"
+ weight: -100
+
---
diff --git a/content/blog/_index.md b/content/blog/_index.md
index 8f86599..b5e1ffc 100644
--- a/content/blog/_index.md
+++ b/content/blog/_index.md
@@ -1,6 +1,10 @@
---
title: "Blog Posts"
+menu:
+ main:
+ name: "Blog"
+
summary: Here you can find the news
---
diff --git a/content/knowledge-base/_index.md b/content/knowledge-base/_index.md
new file mode 100644
index 0000000..3c48925
--- /dev/null
+++ b/content/knowledge-base/_index.md
@@ -0,0 +1,17 @@
+---
+title: "Knowledge Base"
+
+menu:
+ main:
+ name: "Knowledge Base"
+ weight: 10
+
+summary: Here you can find the news
+
+---
+
+
+asdfsdf
+
+
+
diff --git a/content/news/_index.md b/content/news/_index.md
index be5aeb7..7ee073e 100644
--- a/content/news/_index.md
+++ b/content/news/_index.md
@@ -1,6 +1,10 @@
---
title: "News Feed"
+menu:
+ main:
+ name: "News"
+
summary: Here you can find the news
---
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>