Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@indaco
Copy link
Owner

@indaco indaco commented Jun 24, 2025

This PR resolves a schema compliance issue in the JSON-LD output for SiteNavigationElement and closes #12.

The fix introduces a new SiteNavigationElementList type that correctly wraps SiteNavigationElement entries within an ItemList as per Schema.org's guidelines. The updated JSON-LD output is now valid according to validator.schema.org.

What’s Changed

  • Fixed incorrect use of SiteNavigationElement as a root JSON-LD entity
  • Update templ to v0.3.898
  • Introduced SiteNavigationElementList as a valid ItemList container
  • Added helpers:
    • NewSiteNavigationElement
    • NewSimpleSiteNavigationElement
    • NewSiteNavigationElementList
    • NewSiteNavigationElementsFromLinks
  • Updated README.md with new usage examples and expected output

Screenshot 2025-06-24 172058

@indaco indaco merged commit 13136f7 into main Jun 25, 2025
4 checks passed
@indaco indaco deleted the fix-12 branch June 25, 2025 07: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.

ItemList not a valid property of SiteNavigationElement

2 participants