{% extends "base.html" %}
{% block extrahead %}
{#
Open Graph and Twitter metadata for link previews.
The title and description follow the same fallbacks as the `htmltitle` and `site_meta`
blocks of the Material base template, so a preview shows what the browser tab shows.
#}
{% if page.meta and page.meta.title %}
{% set social_title = page.meta.title ~ " - " ~ config.site_name %}
{% elif page.title and not page.is_homepage %}
{% set social_title = (page.title | striptags) ~ " - " ~ config.site_name %}
{% else %}
{% set social_title = config.site_name %}
{% endif %}
{% set social_description = (page.meta and page.meta.description) or config.site_description %}
{% if social_description %}
{% endif %}
{% if page.canonical_url %}
{% endif %}
{#
Scrapers do not resolve relative image URLs reliably, so the card needs an absolute one.
MkDocs normalizes `site_url` to end with a slash.
#}
{% if config.site_url %}
{% endif %}
{% endblock %}