From 56ec12a0fab586b989dd7633d969deba12c27788 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Wed, 25 Mar 2020 09:13:29 -0400 Subject: [PATCH] use Hugo's native menu config for nav bar links --- config.toml | 23 +++++++++++++++++++++++ layouts/partials/page/header.html | 9 ++++----- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/config.toml b/config.toml index 11336c89..8889023d 100644 --- a/config.toml +++ b/config.toml @@ -47,6 +47,29 @@ disableAliases = true linkedin = "jakejarvis" mastodon = "pogge.rs/@jake" +[menu] + [[menu.main]] + name = "Home" + pre = "🏠" + url = "/" + weight = -100 + [[menu.main]] + name = "Notes" + pre = "📝" + url = "/notes/" + weight = -90 + [[menu.main]] + name = "GitHub" + pre = "👨‍💻" + url = "https://github.com/jakejarvis" + weight = -80 + [[menu.main]] + name = "Email" + pre = "📬" + # encode my email address -- probably not effective but why not? + url = "mailto:jake@jarv.is" + weight = -70 + [outputs] home = ["HTML", "RSS", "ALGOLIA", "MANIFEST", "REDIRECTS", "HEADERS"] section = ["HTML"] diff --git a/layouts/partials/page/header.html b/layouts/partials/page/header.html index 4911cd1c..09c7eba6 100644 --- a/layouts/partials/page/header.html +++ b/layouts/partials/page/header.html @@ -1,14 +1,13 @@