Index: includes/toc.tmpl |
=================================================================== |
--- a/includes/toc.tmpl |
+++ b/includes/toc.tmpl |
@@ -15,17 +15,17 @@ |
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
#} |
{% macro toc(page, title_tag=None) %} |
{% set page_content = get_page_content(page) %} |
{% set toclist = page_content["body"]|toclist %} |
{% if title_tag %} |
- <{{ title_tag }}>{{ page_content["title"] }}</{{ title_tag }}> |
+ <{{ title_tag }}>{{ page_content.localedata.get("title", page_content["title"]) }}</{{ title_tag }}> |
{% endif %} |
<ul> |
{% for item in toclist %} |
<li> |
{{ (page + '#' + item.anchor)|linkify }}{{ item.title }}</a> |
{% if item.subitems %}{{ toc(item.subitems) }}{% endif %} |
</li> |
{% endfor %} |