Fix "Back to Top" links

Pages that use header overlays were missing `#page-title` anchors on the `<h1>` element.
This commit is contained in:
Michael Rose 2018-05-08 10:40:42 -04:00
parent cc2793fddc
commit fa0acf455f
3 changed files with 18 additions and 2 deletions

View file

@ -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) ## [4.11.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.11.2)
### Enhancements ### Enhancements

View file

@ -35,7 +35,7 @@
> >
{% if page.header.overlay_color or page.header.overlay_image %} {% if page.header.overlay_color or page.header.overlay_image %}
<div class="wrapper"> <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 %} {% 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 %} {{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
{% else %} {% else %}

View file

@ -4,10 +4,18 @@ 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: 2018-05-03T19:31:32-04:00 last_modified_at: 2018-05-08T10:40:25-04:00
toc: true 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) ## [4.11.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.11.2)
### Enhancements ### Enhancements