{% extends "base.html" %} {# SEO and AEO head additions for the TRACE docs. Title: Material appends " - TRACE" to every page title, which repeated the site name ("TRACE v0.2 - TRACE"). The home page now uses its front-matter title alone, and a title that already names the site gets no suffix. Open Graph and Twitter use the same title string. JSON-LD: one AgenTrust Organization node under the hub's @id, the WebSite, and a node for the page itself (WebPage on the home page, TechArticle elsewhere) carrying its own title, description and canonical URL. Inner pages add a BreadcrumbList; the home page adds the SoftwareApplication node for the agentrust-trace library. Page descriptions come from hooks/seo.py when the front matter has none. Material already emits the canonical link. #} {% 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 "") -%} {%- set is_home = page and page.is_homepage -%} {%- set page_title = config.site_name if not t else (t if is_home or config.site_name in t else t ~ " - " ~ config.site_name) -%} {%- 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 %} {% endblock %}