~xdavidwu/xdavidwu.link

029bf102a8851bbe7200800a134871901a67530c — Michael Rose 6 years ago 8dd9c62
Fix "Back to Top" links

Pages that use header overlays were missing `#page-title` anchors on the `<h1>` element.
2 files changed, 9 insertions(+), 1 deletions(-)

M CHANGELOG.md
M _includes/page__hero.html
M CHANGELOG.md => CHANGELOG.md +8 -0
@@ 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

M _includes/page__hero.html => _includes/page__hero.html +1 -1
@@ 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 %}