{% extends "base.html" %}
{#
SEO and AEO head additions for cMCP.
1.
: Material appends " - site_name" to every page title, so the home
page read "cMCP: ... - cMCP" and titles that already name cMCP repeated it.
The home page uses its front-matter title alone, 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 .
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. Canonical and description
tags are emitted by Material when site_url is set.
#}
{% 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 -%}
{{ 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" -%}
{% endblock %}