Added extends directive to all customization examples

This commit is contained in:
squidfunk 2021-09-12 10:15:21 +02:00
parent f23f738bc0
commit 17d40f7b72
5 changed files with 12 additions and 0 deletions

View File

@ -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 %}
<meta property="robots" content="noindex, nofollow" />
{% 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 %}
<meta property="robots" content="{{ page.meta.robots }}" />

View File

@ -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 %}
<!-- Add custom comment system integration here -->
{% endblock %}

View File

@ -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() }}
<script>

View File

@ -42,6 +42,8 @@ an announcement bar, [extend the theme][4] and [override the `announce`
block][5], which is empty by default:
``` html
{% extends "base.html" %}
{% block announce %}
<!-- Add your announcement here, including arbitrary HTML -->
{% endblock %}

View File

@ -76,6 +76,8 @@ visits any other version than the latest version. Using [theme extension][8],
you can [define the `outdated` block][9]:
``` html
{% extends "base.html" %}
{% block outdated %}
You're not viewing the latest version.
<a href="{{ '../' ~ base_url }}"> <!-- (1) -->