Skip to content

Add h1 heading to blog index page (#223) - #451

Open
mayankgandhi13 wants to merge 1 commit into
posit-dev:mainfrom
mayankgandhi13:fix/blog-index-h1-223
Open

mayankgandhi13 wants to merge 1 commit into
posit-dev:mainfrom
mayankgandhi13:fix/blog-index-h1-223

Conversation

@mayankgandhi13

Copy link
Copy Markdown

Prerequisite check

  • I have linked an approved GitHub Issue below. (Required for all changes except minor typos/broken links).

Related Issue

Closes #223

Description of changes

/blog/ had no <h1>, which axe-core flags (page-has-heading-one). This adds the section title ({{ .Title }}, i.e. "Blog") as an <h1> at the top of layouts/blog/list.html. It uses the same classes as the other section index pages (text-4xl font-medium text-gray-500, as on Resources, Topics, Events and People), so the blog index now matches them.

I built the site locally with Hugo 0.158.0 (the version CI uses). All 18 blog listing pages (/blog/, /blog/page/2/, …) now have exactly one <h1>.

Screenshots or previews (if applicable)

Checklist

  • My code/content builds locally without errors or warnings.
  • I have verified that all links and code blocks function properly.
  • This contribution aligns with the project's CONTRIBUTING.md guidelines.
blog-h1

The blog listing had no level-one heading, which axe-core flags
(page-has-heading-one). Render the section title as an h1, using the
same styling as the other section index pages (Resources, Topics, etc.).

Fixes posit-dev#223
@netlify

netlify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for posit-open-source canceled.

Name Link
🔨 Latest commit 6e0ed1b
🔍 Latest deploy log https://app.netlify.com/projects/posit-open-source/deploys/6ad195344c7c8076ad075e01

@github-actions

Copy link
Copy Markdown
Contributor

Preview not available

This PR is from a fork and cannot deploy a preview automatically.
A repository member can comment /deploy-preview to trigger one
(including you, if you have member access).

@cwickham

Copy link
Copy Markdown
Collaborator

/deploy-preview

@github-actions

Copy link
Copy Markdown
Contributor

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blog index page is missing an h1

2 participants