浏览代码

Merge pull request #53 from tfoote/patch-2

Fixup Version Banner usage so it works by default
Jan Holthuis 4 年之前
父节点
当前提交
55b78993ac
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docs/templates.rst

+ 3 - 3
docs/templates.rst

@@ -84,11 +84,11 @@ List releases and development versions separately
 Version Banners
 ===============
 
-You can also add version banners to your theme, for example:
+You can also add version banners to your theme, for example create a template file page.html in the templates directory:
 
 .. code-block:: html
 
-    {% extends "page.html" %}
+    {% extends "!page.html" %}
     {% block body %}
     {% if current_version and latest_version and current_version != latest_version %}
     <p>
@@ -100,7 +100,7 @@ You can also add version banners to your theme, for example:
         You're reading the documentation for a development version.
         For the latest released version, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name}}</a>.
         {% endif %}
-      <strong>
+      </strong>
     </p>
     {% endif %}
     {{ super() }}