diff --git a/docs/reference/meta-tags.md b/docs/reference/meta-tags.md index 7304472eb..cf6927090 100644 --- a/docs/reference/meta-tags.md +++ b/docs/reference/meta-tags.md @@ -113,6 +113,8 @@ In order to add custom `meta` tags to your document, you can [extend the theme policies for search engines: ``` html +{% extends "base.html" %} + {% block extrahead %} {% endblock %} @@ -127,6 +129,8 @@ values for different pages, you can use the `page.meta` object inside your template override, e.g.: ``` html +{% extends "base.html" %} + {% block extrahead %} {% if page and page.meta and page.meta.robots %} diff --git a/docs/setup/adding-a-comment-system.md b/docs/setup/adding-a-comment-system.md index 77c1e6430..2f41ec4e5 100644 --- a/docs/setup/adding-a-comment-system.md +++ b/docs/setup/adding-a-comment-system.md @@ -77,6 +77,8 @@ In order to integrate another JavaScript-based comment system provider, you can [extend the theme][7] and [override the `disqus` block][8]: ``` html +{% extends "base.html" %} + {% block disqus %} {% endblock %} diff --git a/docs/setup/setting-up-site-search.md b/docs/setup/setting-up-site-search.md index b986e33a3..1f98ab986 100644 --- a/docs/setup/setting-up-site-search.md +++ b/docs/setup/setting-up-site-search.md @@ -180,9 +180,6 @@ Searching for [:octicons-search-24: ^^code blocks^^][12] yields: [![Search highlighting][13]][13] - - - [11]: https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/javascripts/components/search/highlight/index.ts [12]: ../reference/code-blocks.md?h=code+blocks [13]: ../assets/screenshots/search-highlighting.png @@ -312,6 +309,8 @@ customize the `transform` function, you can do this by [overriding the `config` block][24]: ``` html +{% extends "base.html" %} + {% block config %} {{ super() }}