Skip to content

v0.4.1

Choose a tag to compare

@dillonzq dillonzq released this 26 Nov 19:10
· 32 commits to master since this release
v0.4.1
bf739e4

0.4.1 upgrades the bundled libraries, improves accessibility and SEO, and fixes bugs found since 0.4.0. Hugo 0.146.0 or later and Dart Sass are still required. See the CHANGELOG for the full list.

Before You Upgrade

  • Template overrides. The theme switch, search, menu toggle, share and Back controls are now <button> elements. Sites that override _partials/header.html, _partials/plugin/theme-switch.html, _partials/plugin/share.html, _partials/single/footer.html or 404.html should compare them with the new templates.
  • cdnjs.yml is removed. Sites with params.cdn.data = "cdnjs.yml" now get a build warning and use the bundled files. Switch to jsdelivr.yml, jsdelivr.fastly.yml, jsdelivr.cloudflare.yml or unpkg.yml, or keep your own copy in assets/data/cdn/.
  • Share options. Pocket, Skype and Baidu are removed because those services have shut down. Sites that still set them keep building.
  • Mermaid 12 uses the ELK layout and the neo look by default. Set layout: dagre and look: classic under config: in a diagram's front matter to get the previous rendering.
  • ECharts 6 places the legend at the bottom by default and keeps axis labels inside the grid.
  • Mapbox GL JS 3 requires WebGL 2.
  • Home page. The home page and its RSS feed list every regular page in the posts section whatever its type, plus pages in other sections whose type is posts or post.
  • Comment systems. The documentation now warns about Gitalk (its clientSecret is public), Commento (the hosted script no longer serves Commento) and Valine (LeanCloud shuts down on January 12, 2027). giscus is recommended for new sites.

Highlights

  • Share buttons for Bluesky, Email, Douban, Qzone, Pinboard and WordPress
  • A "Skip to main content" link and support for prefers-reduced-motion
  • Right-to-left languages: a dir attribute on <html> and a mirrored header, search, table of contents and fixed buttons
  • Open Graph, Twitter Cards and JSON-LD pick a page's images in one order, publish local images, and skip SVG images
  • robots.txt no longer blocks /css/, /js/ and /images/
  • Fixes for a long table of contents, code copy and code blocks without a known language, posts with a custom type on the home page, and missing translations
  • Upgraded Apache ECharts, algoliasearch, Font Awesome, Fuse.js, Gitalk, KaTeX, lightGallery, Mapbox GL JS, Mermaid, MetingJS, sharer.js, simple-icons, Twemoji, TypeIt and Waline

What's Changed

  • chore(cdn): remove the cdnjs CDN data file by @dillonzq in #1059
  • feat(lib): upgrade simple-icons from v16.9.0 to v16.38.0 by @dillonzq in #1060
  • build(hugo): bump hvm to v1.0.0 and lock Hugo to v0.170.1 by @dillonzq in #1061
  • feat(emoji): upgrade Twemoji from v14.0.2 to v17.0.3 by @dillonzq in #1062
  • feat(lib): upgrade mermaid from v11.5.0 to v12.3.0 by @dillonzq in #1064
  • feat(lib): upgrade TypeIt from v8.6.0 to v8.8.7 by @dillonzq in #1065
  • feat(share): upgrade sharer.js from v0.5.2 to v0.5.4 and add Bluesky by @dillonzq in #1066
  • feat(lib): upgrade KaTeX from v0.16.21 to v0.19.1 by @dillonzq in #1063
  • fix(cdn): point unpkg.yml at files that exist in the npm packages by @dillonzq in #1067
  • feat(lib): upgrade Font Awesome Free from v7.2.0 to v7.3.1 by @dillonzq in #1068
  • feat(share): remove defunct share services and add Email, Douban, Qzone, Pinboard and WordPress by @dillonzq in #1069
  • feat(lib): upgrade Fuse.js from v7.0.0 to v7.5.0 by @dillonzq in #1070
  • feat(lib): upgrade Gitalk from v1.7.2 to v1.8.0 by @dillonzq in #1072
  • feat(lib): upgrade algoliasearch from v5.20.2 to v5.65.0 by @dillonzq in #1071
  • feat(lib): upgrade MetingJS from v2.0.1 to v2.0.2 by @dillonzq in #1073
  • feat(lib): upgrade Mapbox GL JS from v2.9.1 to v3.35.2 by @dillonzq in #1077
  • feat(lib): upgrade lightGallery from v2.5.0 to v3.0.0 by @dillonzq in #1075
  • feat(lib): upgrade Apache ECharts from v5.6.0 to v6.1.0 by @dillonzq in #1074
  • feat(comment): upgrade Waline from v3.16.1 to v3.16.2 by @dillonzq in #1076
  • ci: upgrade GitHub Actions to latest major versions by @dillonzq in #1078
  • build(deps): upgrade Node, sass-embedded, pagefind, Playwright and html-proofer by @dillonzq in #1079
  • fix: correct rel="noopener noreffer" typo to noreferrer by @dillonzq in #1081
  • fix(seo): stop blocking /css/, /js/ and /images/ in robots.txt by @dillonzq in #1080
  • feat(a11y): use semantic buttons for interactive controls by @dillonzq in #1083
  • feat(a11y): add a skip link and honor prefers-reduced-motion by @dillonzq in #1082
  • feat(i18n): set the document direction and mirror layout chrome for RTL languages by @dillonzq in #1084
  • fix(toc): keep a long auto TOC within the viewport and scroll it by @dillonzq in #1085
  • fix(seo): build JSON-LD structured data with dict and jsonify by @dillonzq in #1086
  • fix(code): copy code verbatim and style blocks without a known language by @dillonzq in #1088
  • fix(home): list posts by section so a custom type keeps them on the home page by @dillonzq in #1087
  • ci: configure Dependabot for GitHub Actions, npm and Bundler by @dillonzq in #1089
  • test(i18n): check every translation file against the English keys by @dillonzq in #1090
  • docs: list the license of every bundled library by @dillonzq in #1092
  • docs: add CHANGELOG, CONTRIBUTING and SECURITY files by @dillonzq in #1091
  • ci: record Lighthouse, axe-core and build-time baselines for the example site by @dillonzq in #1093
  • docs: correct the documentation to match the theme's code by @dillonzq in #1094
  • fix(i18n): add the keys missing from 23 translations by @dillonzq in #1095
  • fix(valine): mark comment avatars decorative and stop the example site's IP lookup by @dillonzq in #1096
  • ci: authenticate hvm and track Nightly failures in an issue by @dillonzq in #1097
  • docs: warn about Gitalk, Commento and Valine comment systems by @dillonzq in #1098
  • build: read the theme version from package.json by @dillonzq in #1099
  • docs: refresh the device preview and drop the Sponsor and Stargazers sections by @dillonzq in #1100
  • fix(seo): pick Open Graph and Twitter Cards images like the theme does by @dillonzq in #1101
  • docs: explain automatic lastmod and deploying the theme from Git by @dillonzq in #1102
  • chore: prepare for v0.4.1 by @dillonzq in #1103
  • Merge "master" to "release" for v0.4.1 by @dillonzq in #1104

Full Changelog: v0.4.0...v0.4.1