Skip to content

Commit

Permalink
Fix missing fallback title for table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Jun 27, 2019
1 parent 97a766a commit bf50f37
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
- 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)

### Bug Fixes

- Fix missing fallback title for table of contents.

## [4.16.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.16.4)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{% if page.toc %}
<aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
<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" %}
</nav>
</aside>
Expand Down
6 changes: 5 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar:
nav: docs
last_modified_at: 2019-06-27T18:46:57-04:00
last_modified_at: 2019-06-27T19:00:11-04:00
toc: false
---

Expand All @@ -17,6 +17,10 @@ toc: false
- 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)

### Bug Fixes

- Fix missing fallback title for table of contents.

## [4.16.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.16.4)

### Enhancements
Expand Down

0 comments on commit bf50f37

Please sign in to comment.