Skip to content

Commit 55b7899

Browse files
authored
Merge pull request #53 from tfoote/patch-2
Fixup Version Banner usage so it works by default
2 parents ca246a0 + f9193e8 commit 55b7899

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/templates.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ List releases and development versions separately
8484
Version Banners
8585
===============
8686

87-
You can also add version banners to your theme, for example:
87+
You can also add version banners to your theme, for example create a template file page.html in the templates directory:
8888

8989
.. code-block:: html
9090

91-
{% extends "page.html" %}
91+
{% extends "!page.html" %}
9292
{% block body %}
9393
{% if current_version and latest_version and current_version != latest_version %}
9494
<p>
@@ -100,7 +100,7 @@ You can also add version banners to your theme, for example:
100100
You're reading the documentation for a development version.
101101
For the latest released version, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name}}</a>.
102102
{% endif %}
103-
<strong>
103+
</strong>
104104
</p>
105105
{% endif %}
106106
{{ super() }}

0 commit comments

Comments
 (0)