feat(a11y): adopt mod-blocks v2.4.0 so blocks carry heading levels - #2123
Merged
Conversation
Bumps the example site to mod-blocks v2.4.0, the release that forwards a heading level to section titles. Seven pages that previously rendered no heading at all now open with a real h1: the home page in three languages, the team page in two, and the two documentation landing pages. Adds blocks-demo, the fixture deferred from gethinode/mod-blocks#193. It is the only page carrying both content_blocks and page content, so it is the only cover for single.html's level-2 branch, where blocks render above the page header and their titles become subsections. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for gethinode-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
markdumay
enabled auto-merge
August 5, 2026 13:53
Collaborator
Author
|
🎉 This PR is included in version 3.20.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the loop on #1519 phase 2. #2116 taught the section title partial to render a heading, gethinode/mod-blocks#193 made the blocks ask for one, and #2122 moved the argument definitions into mod-utils. Until this bump none of it is visible: the example site still pinned mod-blocks v2.3.6, so nothing passed a level and every block title stayed a
div.What changes
Bumps the example site to mod-blocks v2.4.0 (and mod-utils to v6.9.0, pulled along with it).
Seven pages that rendered no heading at all — not a missing
h1, nothing — now open with a real one:/en/<h1 id="welcome-to-hinode">/nl/<h1 id="welkom-bij-hinode">/fr/<h1 id="bienvenue-sur-hinode">/en/team/<h1 id="meet-our-team">/fr/team/<h1 id="rencontrez-notre-équipe">/en/docs/<h1 id="docs">/en/docs/blocks/,/en/docs/components/<h1 id="blocks">,<h1 id="components">Adds
blocks-demo, the fixture deferred from the mod-blocks review. It is the only page in the example site carrying bothcontent_blocksand page content, which makes it the only cover forsingle.html's level-2 branch — the one path the heading work had no fixture for. Its outline is exactly the documented shape:Blocks render above the page header, so their titles are subsections and the page title below them stays the only
h1. That ordering is the tradeoff recorded insingle.html; this page makes it visible rather than theoretical.It follows the existing
*-democonvention (form-demo,id-demo,lightbox-demo,table-demo) and, like those, is not linked from any menu.Verification
h1each, no page skips a level. Previously seven had none.hugo -s exampleSitebuilds with no errors and no new warnings.test:templatesexits 0;markdownlintclean on the new page.Still open
h1when every titled block setshide_emptyand the first is empty.use-titlecannot be deprecated yet: mod-blocks still passes it fromassets/hero.htmlandassets/contact.html.heading_levelfield on every block, and can hide it the way gethinode.com already hidesbg-class,section-classandoverlay-mode.🤖 Generated with Claude Code