Fix "Back to Top" links
Pages that use header overlays were missing `#page-title` anchors on the `<h1>` element.
This commit is contained in:
parent
cc2793fddc
commit
fa0acf455f
3 changed files with 18 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
## Unreleased
|
||||
|
||||
### Enhancements
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fix "Back to Top" links on pages that use [header overlays](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#header-overlay).
|
||||
|
||||
## [4.11.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.11.2)
|
||||
|
||||
### Enhancements
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
>
|
||||
{% if page.header.overlay_color or page.header.overlay_image %}
|
||||
<div class="wrapper">
|
||||
<h1 class="page__title" itemprop="headline">
|
||||
<h1 id="page-title" class="page__title" itemprop="headline">
|
||||
{% if paginator and site.paginate_show_page_num %}
|
||||
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
|
||||
{% else %}
|
||||
|
|
|
@ -4,10 +4,18 @@ permalink: /docs/history/
|
|||
excerpt: "Change log of enhancements and bug fixes made to the theme."
|
||||
sidebar:
|
||||
nav: docs
|
||||
last_modified_at: 2018-05-03T19:31:32-04:00
|
||||
last_modified_at: 2018-05-08T10:40:25-04:00
|
||||
toc: true
|
||||
---
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Enhancements
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fix "Back to Top" links on pages that use [header overlays](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#header-overlay).
|
||||
|
||||
## [4.11.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.11.2)
|
||||
|
||||
### Enhancements
|
||||
|
|
Loading…
Reference in a new issue