From c2a24c4075efbfd735ff63882a1200275ac703a7 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 4 Dec 2018 14:17:54 -0500 Subject: [PATCH] Allow sidebar navs with custom sidebar content Multiple sidebar navs can also be included on a page: ``` sidebar: - title: Navigation 1 nav: nav1 - title: Navigation 2 nav: nav2 ``` Fixes #1986 --- _includes/sidebar.html | 1 + 1 file changed, 1 insertion(+) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 9dc6a3c..2a1884e 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -14,6 +14,7 @@ {% endif %} {% if s.title %}

{{ s.title }}

{% endif %} {% if s.text %}{{ s.text | markdownify }}{% endif %} + {% if s.nav %}{% include nav_list nav=s.nav %}{% endif %} {% endfor %} {% if page.sidebar.nav %} {% include nav_list nav=page.sidebar.nav %} -- 2.43.0