Skip to content
Discussion options

You must be logged in to vote

Hello @shenweiyan,
I'm sure this was asked several times in some way before, but search doesn't show anything exact like your question.
If the meta tag is constant, the content doesn't change on the whole website then simply use customization with blocks:
https://squidfunk.github.io/mkdocs-material/customization/#overriding-blocks

  1. Set theme: custom_dir: overrides in your mkdocs.yml
  2. Create the overrides directory next to the mkdocs.yml
  3. Add a main.html file inside that directory with the following override:
{% extends "base.html" %}

{% block extrahead %}
  <meta name="bd-site-verification" content="codeva-hAB8gPWXkn" />
{% endblock %}

The base.html provides the extrahead block and you in…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shenweiyan
Comment options

@kamilkrzyskow
Comment options

@shenweiyan
Comment options

Answer selected by shenweiyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants