From adcb4eaebfccab66ad62bafdc029022353c1a263 Mon Sep 17 00:00:00 2001 From: Romeo Disca Date: Thu, 16 May 2019 20:57:18 +0200 Subject: add navigation --- content/_index.md | 6 ++++++ content/blog/_index.md | 4 ++++ content/knowledge-base/_index.md | 17 +++++++++++++++++ content/news/_index.md | 4 ++++ themes/rusticus/layouts/partials/header/header.html | 8 +------- themes/rusticus/layouts/partials/header/navigation.html | 7 +++++++ 6 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 content/knowledge-base/_index.md create mode 100644 themes/rusticus/layouts/partials/header/navigation.html 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 @@
- + {{ partial "header/navigation.html" . }}
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 @@ + -- cgit v1.2.3