From 57593f546ea2585f928f6d43638cafc9afc72321 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Thu, 6 Aug 2020 15:02:14 +0200 Subject: [PATCH] Fix css and refactor subnavigation bar --- content/about/about.erb | 6 +++++- content/about/historiek.erb | 7 ++++++- content/about/oud-bestuur.erb | 7 +++++-- content/about/privacy.erb | 7 ++++++- content/about/sponsorende-leden.erb | 6 +++++- content/about/statuten.md | 7 +++++-- content/about/verslagen.erb | 6 +++++- layouts/generic.erb | 3 +++ layouts/partials/_about_sub_navbar.erb | 11 ----------- layouts/partials/_sub_navbar.erb | 11 +++++++++++ lib/helpers/nav.rb | 7 +++++++ 11 files changed, 58 insertions(+), 20 deletions(-) delete mode 100644 layouts/partials/_about_sub_navbar.erb create mode 100644 layouts/partials/_sub_navbar.erb diff --git a/content/about/about.erb b/content/about/about.erb index 37dd8f1..9691a6c 100644 --- a/content/about/about.erb +++ b/content/about/about.erb @@ -1,8 +1,12 @@ --- narrow_page: true +subnavigation: + bar: about + identifier: about + name: Zeus WPI + order: 100 --- -<%= render '/partials/_about_sub_navbar.*', selected: 'about' %>

About Zeus WPI

diff --git a/content/about/historiek.erb b/content/about/historiek.erb index ac037ef..eb367f9 100644 --- a/content/about/historiek.erb +++ b/content/about/historiek.erb @@ -1,8 +1,13 @@ --- narrow_page: true typography: true +subnavigation: + bar: about + identifier: historiek + name: Historiek + order: 400 --- -<%= render '/partials/_about_sub_navbar.*', selected: 'historiek' %> +

Historiek

diff --git a/content/about/oud-bestuur.erb b/content/about/oud-bestuur.erb index 0c80850..eea600b 100644 --- a/content/about/oud-bestuur.erb +++ b/content/about/oud-bestuur.erb @@ -1,9 +1,12 @@ --- narrow_page: true +subnavigation: + bar: about + identifier: oud-bestuur + name: Oud-bestuur + order: 500 --- -<%= render '/partials/_about_sub_navbar.*', selected: 'oud-bestuur' %> -

Oud-bestuur

diff --git a/content/about/privacy.erb b/content/about/privacy.erb index c6595fe..a245ab3 100644 --- a/content/about/privacy.erb +++ b/content/about/privacy.erb @@ -3,8 +3,13 @@ title: Privacybeleid narrow_page: true typography: true toc: true +subnavigation: + bar: about + identifier: privacy + name: Privacybeleid + order: 300 --- -<%= render '/partials/_about_sub_navbar.*', selected: 'privacy' %> +

Privacybeleid