Add title to nav_list helper

This commit is contained in:
Michael Rose 2016-04-05 21:50:10 -04:00
parent 47fd353201
commit f9ac13eff7
6 changed files with 6 additions and 0 deletions

View file

@ -3,6 +3,7 @@ title: "Quick-Start Guide"
permalink: /docs/quick-start-guide/ permalink: /docs/quick-start-guide/
excerpt: excerpt:
sidebar: sidebar:
title: "v3.0"
nav: docs nav: docs
--- ---

View file

@ -3,6 +3,7 @@ title: "Structure"
permalink: /docs/structure/ permalink: /docs/structure/
excerpt: excerpt:
sidebar: sidebar:
title: "v3.0"
nav: docs nav: docs
--- ---

View file

@ -3,6 +3,7 @@ title: "Installation"
permalink: /docs/installation/ permalink: /docs/installation/
excerpt: excerpt:
sidebar: sidebar:
title: "v3.0"
nav: docs nav: docs
--- ---

View file

@ -3,6 +3,7 @@ title: "Upgrading"
permalink: /docs/upgrading/ permalink: /docs/upgrading/
excerpt: excerpt:
sidebar: sidebar:
title: "v3.0"
nav: docs nav: docs
--- ---

View file

@ -2,6 +2,7 @@
title: "v2 Documentation" title: "v2 Documentation"
excerpt: "Minimal Mistakes Jekyll theme version 2 setup and installation instructions." excerpt: "Minimal Mistakes Jekyll theme version 2 setup and installation instructions."
sidebar: sidebar:
title: "v3.0"
nav: docs nav: docs
--- ---

View file

@ -2,6 +2,7 @@
{% assign navigation = site.data.navigation[page.sidebar.nav] %} {% assign navigation = site.data.navigation[page.sidebar.nav] %}
<nav class="nav__list"> <nav class="nav__list">
{% if page.sidebar.title %}<header><h4>{{ page.sidebar.title }}</h4></header>{% endif %}
<ul> <ul>
{% for nav in navigation %} {% for nav in navigation %}
<li><span class="nav__sub-title">{{ nav.title }}</span> <li><span class="nav__sub-title">{{ nav.title }}</span>