You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(theme): friendly social link tooltips instead of raw icon names
Social links previously used the raw icon name (e.g. "fontawesome/solid/rss")
as their hover tooltip, which is meaningless to visitors. Add a `social_label`
template helper that derives a human-friendly label from an icon name — mapping
well-known brands/terms to proper casing (rss -> "RSS Feed", x-twitter ->
"X (Twitter)", globe -> "Website", ...) and title-casing the last path segment
for anything else (some/cool-thing -> "Cool Thing").
The header and footer social partials now resolve each link's label as: an
explicit `name` field on the entry (new, optional) first, otherwise the derived
`social_label`. The resolved value is used for both `title` and `aria-label`,
improving usability and accessibility.
Adds tests for the curated map, title-case fallback, and blank input, and
documents `name` / `social_label` under the theme reference.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments