Skip to content

fix(docs): remove duplicate page heading#618

Merged
wu-sheng merged 1 commit into
mainfrom
fix/docs-duplicate-heading
Jun 27, 2026
Merged

fix(docs): remove duplicate page heading#618
wu-sheng merged 1 commit into
mainfrom
fix/docs-duplicate-heading

Conversation

@wu-sheng

Copy link
Copy Markdown
Member

Problem

On the published docs site every page showed its title twice — e.g. the home page rendered "SkyAPM .NET Agent" two times in a row.

Cause: the Hextra theme renders the front-matter title as the page <h1>, but each Markdown page also began with its own # Heading in the body → two identical H1s.

Fix

Remove the redundant leading body # H1 from all 13 content pages; the heading now comes solely from the front-matter title (one <h1> per page).

✅ Verified with hugo --gc: exactly one <h1> per page (home, docs index, and guide pages).

🤖 Generated with Claude Code

The Hextra theme renders the front-matter `title` as the page H1, but each
content page also started with its own `# Heading` in the body — so every
page (including the home) displayed the title twice. Drop the redundant body
H1 from all content pages; the title now appears once.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wu-sheng wu-sheng merged commit 696d598 into main Jun 27, 2026
1 check passed
@wu-sheng wu-sheng deleted the fix/docs-duplicate-heading branch June 27, 2026 16:27
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.

1 participant