Add title to nav_list helper
This commit is contained in:
parent
47fd353201
commit
f9ac13eff7
6 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@ title: "Quick-Start Guide"
|
|||
permalink: /docs/quick-start-guide/
|
||||
excerpt:
|
||||
sidebar:
|
||||
title: "v3.0"
|
||||
nav: docs
|
||||
---
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ title: "Structure"
|
|||
permalink: /docs/structure/
|
||||
excerpt:
|
||||
sidebar:
|
||||
title: "v3.0"
|
||||
nav: docs
|
||||
---
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ title: "Installation"
|
|||
permalink: /docs/installation/
|
||||
excerpt:
|
||||
sidebar:
|
||||
title: "v3.0"
|
||||
nav: docs
|
||||
---
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ title: "Upgrading"
|
|||
permalink: /docs/upgrading/
|
||||
excerpt:
|
||||
sidebar:
|
||||
title: "v3.0"
|
||||
nav: docs
|
||||
---
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: "v2 Documentation"
|
||||
excerpt: "Minimal Mistakes Jekyll theme version 2 setup and installation instructions."
|
||||
sidebar:
|
||||
title: "v3.0"
|
||||
nav: docs
|
||||
---
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{% assign navigation = site.data.navigation[page.sidebar.nav] %}
|
||||
|
||||
<nav class="nav__list">
|
||||
{% if page.sidebar.title %}<header><h4>{{ page.sidebar.title }}</h4></header>{% endif %}
|
||||
<ul>
|
||||
{% for nav in navigation %}
|
||||
<li><span class="nav__sub-title">{{ nav.title }}</span>
|
||||
|
|
Loading…
Reference in a new issue