feat: add Google site verification meta tag support in MkDocs configuration

This commit is contained in:
Emil Stenström 2025-08-23 08:04:58 +02:00
parent 3a7ca44c9b
commit dbccd5d7d3
2 changed files with 13 additions and 0 deletions

12
docs/overrides/main.html Normal file
View file

@ -0,0 +1,12 @@
{#
Theme override: inject Google site verification meta tag.
Uses documented extrahead block from Material for MkDocs.
If token changes, update in mkdocs.yml under extra.google_site_verification.
#}
{% extends "base.html" %}
{% block extrahead %}
{{ super() }}
{% if config.extra.google_site_verification %}
<meta name="google-site-verification" content="{{ config.extra.google_site_verification }}" />
{% endif %}
{% endblock %}