diff --git a/content/_index.md b/content/_index.md index 8f5e205..7c3016e 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,5 +1,9 @@ --- toc: false +# Single source for the home page's , OpenGraph/Twitter card +# description, and JSON-LD (see layouts/index.html, which is a standalone landing +# template that does not go through the theme's head.html). +description: "One registry for MCP servers, agents, skills, and prompts. Curate trusted AI building blocks, deploy with one command, and integrate with Claude Desktop, Cursor, and VS Code." ---
diff --git a/go.mod b/go.mod index 1e1823a..1c959c2 100644 --- a/go.mod +++ b/go.mod @@ -5,4 +5,4 @@ go 1.25.1 // docs-theme-extras declares the hextra import itself (pinned to v0.12.3), so // hextra is a transitive dependency and is not listed here — matching // agentgateway / kgateway / ambientmesh. Its checksums stay in go.sum. -require github.com/solo-io/docs-theme-extras v0.1.18 // indirect +require github.com/solo-io/docs-theme-extras v0.1.19 // indirect diff --git a/go.sum b/go.sum index 6e37354..c221313 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/solo-io/docs-theme-extras v0.1.18 h1:S3CGkTq4EjIj1PNqQXht1xtLLGTUqhWzIezycV6wP3s= -github.com/solo-io/docs-theme-extras v0.1.18/go.mod h1:jjjYu/QoD+vMu30zgcpfEuTEGuJOJWs5qai/K18kltg= +github.com/solo-io/docs-theme-extras v0.1.19 h1:OzJtj8fy2/ywyriND98Nnet8RH+xfArbe1UmmcmzaQM= +github.com/solo-io/docs-theme-extras v0.1.19/go.mod h1:jjjYu/QoD+vMu30zgcpfEuTEGuJOJWs5qai/K18kltg= diff --git a/hugo.yaml b/hugo.yaml index 2a252d1..50d8773 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -15,6 +15,17 @@ outputs: # Enable dark mode by default params: + # Hide the visible "Last updated on " footer (imported OSS content + # modules ship displayUpdatedDate=true; this overrides it). The git date still + # feeds the sitemap for SEO. + displayUpdatedDate: false + + # Default social-share image for OpenGraph / Twitter cards (og:image), + # emitted by Hextra's opengraph.html and docs-theme-extras' twitter_cards.html. + # Card committed at static/ogimage.png (1200x630). + images: + - /ogimage.png + # Tells docs-theme-extras which brand CSS layer + font stack to load # (see the module's layouts/partials/themeExtras/head-end.html). "oss" # loads brand-oss.css and Open Sans; "enterprise" loads brand-enterprise.css. @@ -90,8 +101,13 @@ params: # Enable emoji in markdown enableEmoji: true -# Enable GitInfo +# Enable GitInfo — derive each page's .Lastmod from its last git commit (no +# manually maintained front-matter dates). Feeds the sitemap for SEO. +# "lastmod" before ":git" keeps an explicit front-matter date ahead of the +# commit date where a page sets one. enableGitInfo: true +frontmatter: + lastmod: ["lastmod", ":git", "date", "publishDate"] # Menu configuration menu: diff --git a/hugo_stats.json b/hugo_stats.json index b0acf92..d012e87 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -532,7 +532,6 @@ "terminal-title", "theme-toggle", "tick", - "toggle-dark", "toggle-light", "top", "url" diff --git a/layouts/index.html b/layouts/index.html index 809b1b7..920aada 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,24 @@ agentregistry — Build. Deploy. Discover. - +{{- /* This is a standalone landing template that does NOT call the theme's + head.html, so the SEO metadata head.html normally emits is added here by + hand: description (from front matter), canonical, robots, OpenGraph, + schema.org JSON-LD, and the Twitter/X card. opengraph.html ships with + Hextra and works today; schema.html and twitter_cards.html are provided by + docs-theme-extras and start emitting once the extras pin is bumped (before + that they resolve to Hextra's empty stubs and emit nothing). Without this, + sharing the site root produced no social card despite the OG image. */ -}} + + +{{- with .Params.canonical }} + +{{- else }} + +{{- end }} +{{- partial "opengraph.html" . -}} +{{- partial "schema.html" . -}} +{{- partial "twitter_cards.html" . -}}