From f3c564e297db54e57f9311ad4b486ec4c873caf2 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Thu, 25 Mar 2021 16:15:47 -0500 Subject: [PATCH] Fix navbar --- config.toml | 12 +----------- disabled_config.toml | 9 +++++++++ themes/bbaovanc/layouts/partials/header.html | 10 +++++++++- themes/bbaovanc/layouts/partials/navbar.html | 5 ----- 4 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 disabled_config.toml delete mode 100644 themes/bbaovanc/layouts/partials/navbar.html diff --git a/config.toml b/config.toml index 60d6538..72d30e9 100644 --- a/config.toml +++ b/config.toml @@ -2,14 +2,4 @@ baseURL = "https://bbaovanc.com/blog/" languageCode = "en-us" title = "bbaovanc's blog" theme = "bbaovanc" -sectionPagesMenu = "navigation" - -[menu] - [[menu.main]] - identifier = "home" - name = "Home" - url = "/" - [[menu.main]] - identifier = "posts" - name = "Posts" - url = "/posts" +sectionPagesMenu = "main" diff --git a/disabled_config.toml b/disabled_config.toml new file mode 100644 index 0000000..12ba8c2 --- /dev/null +++ b/disabled_config.toml @@ -0,0 +1,9 @@ +[menu] + [[menu.main]] + identifier = "home" + name = "Home" + url = "/" + [[menu.main]] + identifier = "posts" + name = "Posts" + url = "/posts" diff --git a/themes/bbaovanc/layouts/partials/header.html b/themes/bbaovanc/layouts/partials/header.html index 55cdac9..9e6422b 100644 --- a/themes/bbaovanc/layouts/partials/header.html +++ b/themes/bbaovanc/layouts/partials/header.html @@ -1,4 +1,12 @@

{{ .Site.Title }}

-{{ partial "navbar.html" }} + + diff --git a/themes/bbaovanc/layouts/partials/navbar.html b/themes/bbaovanc/layouts/partials/navbar.html deleted file mode 100644 index a8e0197..0000000 --- a/themes/bbaovanc/layouts/partials/navbar.html +++ /dev/null @@ -1,5 +0,0 @@ -