From bfdec79f41ca25791e9b23a8f188eb8a202bb58c Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Sat, 20 Jun 2026 13:51:37 +0200 Subject: [PATCH] feat(v2/seo): per-page CollectionPage JSON-LD with datePublished/dateModified Adds a second JSON-LD block per page (a schema.org CollectionPage tied to the existing WebSite/Organization @graph) carrying the page name, description, URL, and datePublished / dateModified fed by the git-revision-date plugin's raw ISO dates. Enables richer search results (article/collection rich snippets) with real freshness dates. Template-only change (docs/overrides/main.html), applied at build time; the homepage is skipped (it is already the WebSite entity). Verified: every content page emits a valid CollectionPage with both dates (e.g. Kubernetes datePublished=2026-05-18 dateModified=2026-06-20); the home carries only the WebSite+Organization graph. Co-Authored-By: Claude Opus 4.8 --- docs/overrides/main.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/overrides/main.html b/docs/overrides/main.html index cb2f48ef..8552958f 100644 --- a/docs/overrides/main.html +++ b/docs/overrides/main.html @@ -50,4 +50,33 @@ ] } + {#- + Per-page structured data: a CollectionPage (each V2 page is a curated + collection of resources) tied to the WebSite/Organization above, with + datePublished / dateModified fed by the git-revision-date plugin. Enables + richer search results. Skipped on the homepage (already the WebSite entity). + -#} + {% if page and not page.is_homepage and page.canonical_url %} + + {% endif %} {% endblock %}