From 91a2b975cb6df3d45c9a3af0f690017e3725cc18 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 9 Feb 2017 16:32:04 +0100 Subject: dynamic section-based menu --- config.toml | 45 ++++++++++++++++++++++++++++- themes/new_theme/layouts/partials/menu.html | 15 +--------- 2 files changed, 45 insertions(+), 15 deletions(-) diff --git a/config.toml b/config.toml index eb27b44..d8d0f65 100644 --- a/config.toml +++ b/config.toml @@ -4,6 +4,7 @@ title = "Andreas Baumann's Personal Home Page" theme = "new_theme" disableRss = true enableRobotsTXT = true +SectionPagesMenu = "main" [Params] author = "Andreas Baumann" @@ -12,10 +13,52 @@ enableRobotsTXT = true subtitle = "Personal Home Page" location = "Zurich" copyright_years = "2009 - 2017" + opengraph = true [Params.widgets] search = true recent_articles = true categories = true tags = true - + +[[menu.main]] + name = "Home" + weight = 30 + identifier = "home" + url = "/" + +[[menu.main]] + name = "Software" + weight = 40 + identifier = "software" + url = "/software" + +[[menu.main]] + name = "Toolbox" + weight = 50 + identifier = "toolbox" + url = "/toolbox" + +[[menu.main]] + name = "Git" + weight = 60 + identifier = "git" + url = "/git" + +[[menu.main]] + name = "Slides" + weight = 70 + identifier = "slide" + url = "/slide" + +[[menu.main]] + name = "Blog" + weight = 80 + identifier = "blog" + url = "/blog" + +[[menu.main]] + name = "Contact" + weight = 90 + identifier = "contact" + url = "/contact" diff --git a/themes/new_theme/layouts/partials/menu.html b/themes/new_theme/layouts/partials/menu.html index e322ac4..3a8fae2 100644 --- a/themes/new_theme/layouts/partials/menu.html +++ b/themes/new_theme/layouts/partials/menu.html @@ -1,16 +1,3 @@ - - - + -- cgit v1.2.3-54-g00ecf