From 17d40f7b721cb0b8d6e63e95c7ae18e4e9434959 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 12 Sep 2021 10:15:21 +0200 Subject: [PATCH] Added extends directive to all customization examples --- docs/reference/meta-tags.md | 4 ++++ docs/setup/adding-a-comment-system.md | 2 ++ docs/setup/setting-up-site-search.md | 2 ++ docs/setup/setting-up-the-header.md | 2 ++ docs/setup/setting-up-versioning.md | 2 ++ 5 files changed, 12 insertions(+) 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() }}