Skip to content

Conversation

@madeline-underwood
Copy link
Collaborator

Fixes an issue where tags were emitted with only whitespace due to incomplete whitespace trimming in the head template.

The template now fully normalizes and trims the description front matter value and only emits the meta tag when a non-empty value remains.

Testing: Verified locally by rebuilding with Hugo and inspecting generated HTML. Pages with a description field now emit a correct meta description, and no whitespace-only tags are generated.

@madeline-underwood
Copy link
Collaborator Author

This change avoids strings.TrimSpace because CI currently runs Hugo v0.130.0, which errors when trimming an interface{} param. Local builds use a newer Hugo and work either way.

@pareenaverma pareenaverma merged commit 7cfd72c into ArmDeveloperEcosystem:main Jan 20, 2026
1 check passed
@pareenaverma
Copy link
Contributor

Nice catch and fix.

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.

2 participants