Skip to content

v7.2.1

Latest

Choose a tag to compare

@satnaing satnaing released this 21 Nov 08:47

Highlights

Two small fixes. No breaking changes.

Fixes

  • Smooth scrolling respects reduced motion (#731). In-page links, the table of contents, Back to top and the skip link now jump straight to their target when reduced motion is on in the OS. Without it, they still scroll smoothly.
  • PostEnd.astro content stays out of search (#729 by @charles-hood). Text you put in src/custom/PostEnd.astro, like an author bio or a newsletter blurb, was indexed with every post, so a search for it matched all of them.

Upgrading from v7.2

  • Copy src/layouts/Layout.astro, src/components/Header.astro and src/pages/posts/[...slug]/index.astro from this release.
  • If you've edited those files, make the changes by hand instead:
    • Layout.astro: on <html>, change scroll-smooth to motion-safe:scroll-smooth.
    • Header.astro: in the skip link's script, change target.scrollIntoView({ behavior: "smooth" }) to target.scrollIntoView().
    • posts/[...slug]/index.astro: wrap <PostEnd {post} /> in <div data-pagefind-ignore>.

Docs

  • The LaTeX and Giscus guides now use src/custom/ (4bc2daf).

Dependencies

  • Astro 7.4.12 and other patch and minor updates (#730)

What's Changed

  • fix: respect reduced motion for smooth scrolling by @satnaing in #731
  • fix: keep PostEnd content out of the search index by @charles-hood in #729
  • build(deps): bump the minor-and-patch group with 7 updates by @dependabot[bot] in #730

Full Changelog: v7.2.0...v7.2.1