Skip to content

fix: declare the cue and tab attributes on the links item type - #359

Merged
markdumay merged 2 commits into
mainfrom
fix/links-type-cue
Jul 30, 2026
Merged

fix: declare the cue and tab attributes on the links item type#359
markdumay merged 2 commits into
mainfrom
fix/links-type-cue

Conversation

@markdumay

@markdumay markdumay commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Both assets/link.html and assets/button.html accept cue and tab — the per-element overrides for main.externalLinks.cue / .tab — but the shared links item type declares neither. Content that legitimately sets either on an entry of a links list therefore logs warn-invalid-arguments (unsupported attribute) on every render, through each partial in the chain (hero, section-title, links).

Both already have global definitions in _arguments.yml (bool, optional, no default), so the members compile without further changes and an absent value stays absent, leaving the consuming partial free to apply the site setting.

Same shape as #357, which declared label and url on the elements type.

Verification

  • pnpm test — golden check passes (14 groups).
  • Applied against a production multilingual site on hinode v3.11.5 / mod-utils v6.8.3: six unsupported attribute 'cue' warnings per build drop to zero, with no other change to the build output.

Note

This silences the validation warning. Making the attributes actually take effect needs the companion fix in hinode — gethinode/hinode#2092 — which forwards them through assets/links.html and stops | default from swallowing an explicit false. The two are independent and safe to merge in either order.

🤖 Generated with Claude Code

markdumay and others added 2 commits July 29, 2026 20:40
assets/link.html and assets/button.html both accept cue — the per-element
override for main.externalLinks.cue — and content legitimately sets it on an
entry of a links list to suppress the external-link icon on a link that already
carries its own brand icon. The shared links item type does not declare it, so
the v6 validation engine logs warn-invalid-arguments ('unsupported attribute')
on every render of such content.

cue has a global definition in _arguments.yml (bool, optional, no default), so
the member compiles without further changes and an absent value stays absent,
leaving the consuming partial free to apply main.externalLinks.cue.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Companion to the cue declaration. assets/link.html and assets/button.html both
accept tab — the per-element override for main.externalLinks.tab — so an entry
of a links list can keep an external link in the same tab. The shared links item
type did not declare it, so the v6 validation engine logs
warn-invalid-arguments ('unsupported attribute') on such content.

Like cue, tab has a global definition in _arguments.yml (bool, optional, no
default), so the member compiles without further changes and an absent value
stays absent for the consuming partial to resolve.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@markdumay
markdumay merged commit 6c5c875 into main Jul 30, 2026
11 checks passed
@markdumay
markdumay deleted the fix/links-type-cue branch July 30, 2026 03:56
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 6.8.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant