Uses a passive scroll listener with requestAnimationFrame instead of assigning window.onscroll, which also no longer clobbers or gets clobbered by other window.onscroll handlers.
- replaced deprecated .Scratch with local variables in toc, index.json, share_icons and ltr/rtl shortcodes
- replaced newScratch with local variables in post_meta, schema_json and share_icons
- keeps state local to each template; output unchanged
* fix(layouts): use non-deprecated .Language methods
Hugo v0.158.0 deprecated these in favour of new names:
- .Language.LanguageDirection -> .Language.Direction
- .Language.LanguageCode -> .Language.Locale
- .Language.LanguageName -> .Language.Label
Fixes the deprecation warnings shown on every build. Requires Hugo
v0.158.0 or later.
Closes#1856
* chore(theme): bump minimum hugo version to v0.158.0
* fix(schema_json): replace deprecated .Language.Lang with .Language.Name
ref: https://discourse.gohugo.io/t/deprecations-in-v0-158-0/56869
* feat(layouts): move all files in layouts/_default up to the layouts/ root.
* feat(layouts): rename layouts/partials folder to layouts/_partials
* feat(layouts): rename layouts/shortcodes folder to layouts/_shortcodes
* feat(taxonomy): add new taxonomy layout template
A template named taxonomy.html used to be a candidate for both Page kind term and taxonomy, now it’s only considered for taxonomy.