{% extends "base.html" %} {# SEO and AEO head additions for cA2A. 1. : Material appends " - site_name" to every page title, so the home page read "cA2A: ... - cA2A". The home page uses its front-matter title alone (index.md is the site home here, separate from README.md), and other pages drop the suffix when the title already contains the site name. 2. Open Graph and Twitter card meta, with og:title equal to <title>. 3. JSON-LD: one Organization node under the hub's @id, so every AgenTrust site names the same organization; a WebSite; a WebPage (home) or TechArticle (inner page) carrying this page's own title, description and canonical URL; a BreadcrumbList on inner pages; and the project node on the home page. Per-page meta descriptions come from hooks/seo.py. Asset paths are derived from config.site_url: assets live under /docs/assets/ here because docs_dir is the repository root, which differs from sibling repositories. #} {% block htmltitle %} {%- set t = page.meta.title if page and page.meta and page.meta.title else (page.title | striptags if page and page.title and not page.is_homepage else "") -%} {%- if not t -%} <title>{{ config.site_name }} {%- elif (page and page.is_homepage) or config.site_name in t -%} {{ t }} {%- else -%} {{ t }} - {{ config.site_name }} {%- endif -%} {% endblock %} {% block extrahead %} {{ super() }} {%- set t = page.meta.title if page and page.meta and page.meta.title else (page.title | striptags if page and page.title and not page.is_homepage else "") -%} {%- if not t -%} {%- set page_title = config.site_name -%} {%- elif (page and page.is_homepage) or config.site_name in t -%} {%- set page_title = t -%} {%- else -%} {%- set page_title = t ~ " - " ~ config.site_name -%} {%- endif -%} {%- set page_desc = page.meta.description if page and page.meta and page.meta.description else config.site_description -%} {%- set page_url = page.canonical_url if page and page.canonical_url else config.site_url -%} {%- set is_home = page and page.is_homepage -%} {%- set org = "https://agentrust-io.com/#organization" -%} {%- set og_image = config.site_url ~ 'docs/assets/og.png' -%} {% endblock %}