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..71e26a97c 100644 --- a/docs/setup/setting-up-site-search.md +++ b/docs/setup/setting-up-site-search.md @@ -312,6 +312,8 @@ customize the `transform` function, you can do this by [overriding the `config` block][24]: ``` html +{% extends "base.html" %} + {% block config %} {{ super() }}