{#- Link previews: Open Graph and Twitter Card tags on every page, so a link shared on X, LinkedIn, Slack or
Discord shows a title, a line and a picture. A page may set `description` and `image` (a path under docs/)
in its front matter, and `social_title` for a shorter card title; otherwise the site's own are used. -#}
{% extends "base.html" %}
{% block extrahead %}
{%- set meta = page.meta or {} -%}
{%- if page.url in ["", "./", "index.html"] or not page.title or page.title == config.site_name -%}
{%- set title = config.site_name ~ ": " ~ config.site_description -%}
{%- else -%}
{%- set title = page.title ~ " ยท " ~ config.site_name -%}
{%- endif -%}
{%- if meta.social_title %}{% set title = meta.social_title %}{% endif -%}
{%- set desc = meta.description or config.site_description -%}
{%- set image = config.site_url ~ (meta.image or "assets/social-preview.png") -%}
{%- if page.canonical_url %}
{%- endif %}
{% endblock %}