From 192d0bbee649e1f25f1ed0ba93edd311971b3f94 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 8 Sep 2016 15:00:23 +0300 Subject: [PATCH] Allow configuration of optional sidebar links Add something like the following to your config: [[menu.sidebar]] name = "Link 1" url = "https://link1.com" [[menu.sidebar]] name = "Link 2" url = "https://link2.com" See the Hugo docs for more examples: https://gohugo.io/extras/menus/ --- layouts/partials/sidebar.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 454bf67..dcf07c0 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -17,12 +17,14 @@ + {{ with .Site.Menus.sidebar }} + {{ end }}