Skip to content

Add Open Graph, Twitter card and structured data to the docs - #269

Merged
jnioche merged 1 commit into
mainfrom
docs/seo-head-metadata
Aug 26, 2026
Merged

Add Open Graph, Twitter card and structured data to the docs#269
jnioche merged 1 commit into
mainfrom
docs/seo-head-metadata

Conversation

@jnioche

@jnioche jnioche commented Aug 26, 2026

Copy link
Copy Markdown
Member

The site emitted no og:, twitter: or JSON-LD tags at all, so a link shared on LinkedIn, Bluesky or Slack rendered as a bare URL.

overrides/main.html now fills the extrahead block with Open Graph and Twitter card tags, plus a SoftwareApplication JSON-LD block on the home page. Titles and descriptions reuse the per-page front matter from #268 and fall back to the site-wide values, so all 17 pages get a distinct card. Adds a 1200x630 social card image.

og:image and og:url are built from site_url rather than the url filter: scrapers do not resolve relative paths.

Two Zensical details worth recording: the template engine treats missing values as errors, so every page.meta access is guarded, and page.is_homepage is never set - the home page is identified by an empty page.url plus a canonical_url, which also excludes 404.html.

The site emitted no og:, twitter: or JSON-LD tags at all, so a link shared
on LinkedIn, Bluesky or Slack rendered as a bare URL.

overrides/main.html now fills the extrahead block with Open Graph and
Twitter card tags, plus a SoftwareApplication JSON-LD block on the home
page. Titles and descriptions reuse the per-page front matter from #268
and fall back to the site-wide values, so all 17 pages get a distinct
card. Adds a 1200x630 social card image.

og:image and og:url are built from site_url rather than the url filter:
scrapers do not resolve relative paths.

Two Zensical details worth recording: the template engine treats missing
values as errors, so every page.meta access is guarded, and page.is_homepage
is never set - the home page is identified by an empty page.url plus a
canonical_url, which also excludes 404.html.
@jnioche jnioche added this to the 1.3 milestone Aug 26, 2026
@jnioche jnioche added the documentation Improvements or additions to documentation label Aug 26, 2026

@dpol1 dpol1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool!

@jnioche
jnioche merged commit 840d683 into main Aug 26, 2026
1 check passed
@jnioche
jnioche deleted the docs/seo-head-metadata branch August 26, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants