mirror of
https://github.com/django-components/django-components.git
synced 2025-09-02 04:07:20 +00:00
feat: add Google site verification meta tag support in MkDocs configuration
This commit is contained in:
parent
3a7ca44c9b
commit
dbccd5d7d3
2 changed files with 13 additions and 0 deletions
12
docs/overrides/main.html
Normal file
12
docs/overrides/main.html
Normal 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 %}
|
|
@ -80,6 +80,7 @@ extra:
|
||||||
link: https://github.com/django-components/django-components
|
link: https://github.com/django-components/django-components
|
||||||
- icon: fontawesome/brands/python
|
- icon: fontawesome/brands/python
|
||||||
link: https://pypi.org/project/django-components/
|
link: https://pypi.org/project/django-components/
|
||||||
|
google_site_verification: vQA3d50F2ByQxG0eB6b0YoPnYW9gZo8xnd6HKhCyuys
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
abbr: {}
|
abbr: {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue