Add generic BlogPosting and FAQPage JSON-LD structured data#458
Open
vittorio88 wants to merge 1 commit intodevcows:masterfrom
Open
Add generic BlogPosting and FAQPage JSON-LD structured data#458vittorio88 wants to merge 1 commit intodevcows:masterfrom
vittorio88 wants to merge 1 commit intodevcows:masterfrom
Conversation
Auto-inject BlogPosting schema on blog posts and FAQPage schema on any page with `faq` front-matter entries. Both partials are data-driven from standard Hugo variables and site params. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
json-ld-blog.htmlpartial: auto-generates BlogPosting schema for blog postsjson-ld-faq.htmlpartial: auto-generates FAQPage schema from front matterheaders.html— no configuration neededBlogPosting
Automatically injected on any page where
section == "blog". Uses standard Hugo variables (.Title,.Permalink,.Date,.Lastmod,.Description) and falls back to site params for org name and logo.FAQPage
Driven by front matter. Any page can opt in by adding
faqentries:Test plan
[[faq]]front matter and verify FAQPage JSON-LD appears