diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 9dc6a3c3..2a1884ed 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 %} diff --git a/docs/_posts/2012-03-15-layout-sidebar-custom.md b/docs/_posts/2012-03-15-layout-sidebar-custom.md index ee49173e..13497dd5 100644 --- a/docs/_posts/2012-03-15-layout-sidebar-custom.md +++ b/docs/_posts/2012-03-15-layout-sidebar-custom.md @@ -9,6 +9,7 @@ sidebar: text: "Some text here." - title: "Another Title" text: "More text here." + nav: sidebar-sample --- This post has a custom sidebar set in the post's YAML Front Matter. diff --git a/test/_posts/2012-03-15-layout-sidebar-custom.md b/test/_posts/2012-03-15-layout-sidebar-custom.md index ee49173e..91f1aa44 100644 --- a/test/_posts/2012-03-15-layout-sidebar-custom.md +++ b/test/_posts/2012-03-15-layout-sidebar-custom.md @@ -7,8 +7,7 @@ sidebar: image: http://placehold.it/350x250 image_alt: "image" text: "Some text here." - - title: "Another Title" - text: "More text here." + nav: sidebar-sample --- This post has a custom sidebar set in the post's YAML Front Matter.