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 %}

View file

@ -80,6 +80,7 @@ extra:
link: https://github.com/django-components/django-components
- icon: fontawesome/brands/python
link: https://pypi.org/project/django-components/
google_site_verification: vQA3d50F2ByQxG0eB6b0YoPnYW9gZo8xnd6HKhCyuys
markdown_extensions:
abbr: {}