Fix missing fallback title for table of contents

This commit is contained in:
Michael Rose 2019-06-27 19:00:23 -04:00
parent 098a475726
commit b5b8c45530
3 changed files with 10 additions and 2 deletions

View file

@ -6,6 +6,10 @@
- Update links and fix typos in documentation. [#2186](https://github.com/mmistakes/minimal-mistakes/pull/2186) - Update links and fix typos in documentation. [#2186](https://github.com/mmistakes/minimal-mistakes/pull/2186)
- Add skip links. [#2182](https://github.com/mmistakes/minimal-mistakes/issues/2182) - Add skip links. [#2182](https://github.com/mmistakes/minimal-mistakes/issues/2182)
### Bug Fixes
- Fix missing fallback title for table of contents.
## [4.16.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.16.4) ## [4.16.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.16.4)
### Enhancements ### Enhancements

View file

@ -37,7 +37,7 @@ layout: default
{% if page.toc %} {% if page.toc %}
<aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}"> <aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
<nav class="toc"> <nav class="toc">
<header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label }}</h4></header> <header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label | default: "On this page" }}</h4></header>
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" %} {% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" %}
</nav> </nav>
</aside> </aside>

View file

@ -5,7 +5,7 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme." excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar: sidebar:
nav: docs nav: docs
last_modified_at: 2019-06-27T18:46:57-04:00 last_modified_at: 2019-06-27T19:00:11-04:00
toc: false toc: false
--- ---
@ -17,6 +17,10 @@ toc: false
- Update links and fix typos in documentation. [#2186](https://github.com/mmistakes/minimal-mistakes/pull/2186) - Update links and fix typos in documentation. [#2186](https://github.com/mmistakes/minimal-mistakes/pull/2186)
- Add skip links. [#2182](https://github.com/mmistakes/minimal-mistakes/issues/2182) - Add skip links. [#2182](https://github.com/mmistakes/minimal-mistakes/issues/2182)
### Bug Fixes
- Fix missing fallback title for table of contents.
## [4.16.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.16.4) ## [4.16.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.16.4)
### Enhancements ### Enhancements