NutsNews SEO Structured Data Audit
Section titled “NutsNews SEO Structured Data Audit”This update adds an automated production SEO audit for NutsNews.
The audit checks the live site for the core fields that matter before manually using Google Rich Results Test or Schema.org Validator:
- homepage title and description
- canonical URL
- Open Graph title, description, and image
- Twitter card image metadata
- valid
application/ld+jsonJSON-LD - homepage page-level schema
- article page
Article,NewsArticle, orBlogPostingschema - article headline, description, image, dates, publisher, and
mainEntityOfPage - sitemap index traversal and article URL discovery
Local usage
Section titled “Local usage”From the web app folder:
cd webnpm run audit:seoAudit a different public URL:
SEO_AUDIT_BASE_URL="https://www.nutsnews.com" npm run audit:seoAudit more article URLs:
SEO_AUDIT_ARTICLE_LIMIT=5 npm run audit:seoOptionally include static pages:
SEO_AUDIT_EXTRA_PATHS="/privacy,/contact" npm run audit:seoReports are written to:
web/reports/seo/seo-structured-data-audit.mdweb/reports/seo/seo-structured-data-audit.jsonSitemap Discovery
Section titled “Sitemap Discovery”The audit checks /sitemap-index.xml first and follows same-origin sitemap entries, including article sitemap shards. It falls back to /sitemap.xml for compatibility with older deployments. Traversal is capped so a bad sitemap index cannot turn the audit into an unbounded crawl.
GitHub Actions
Section titled “GitHub Actions”The workflow lives at:
.github/workflows/seo-structured-data.ymlIt runs on:
- push to
main - pull requests
- manual dispatch
- daily schedule at
10:30 UTC
The workflow audits the live production site by default:
https://www.nutsnews.comIt uploads the report as a GitHub Actions artifact.
Why this exists
Section titled “Why this exists”Google Rich Results Test and Schema.org Validator are still useful manual checks. This workflow does not replace those tools completely, but it catches the common NutsNews SEO regressions automatically before they sit unnoticed in production.
