diff options
-rw-r--r-- | config.toml | 2 | ||||
-rw-r--r-- | templates/page.html | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/config.toml b/config.toml index 764b3d8..365282e 100644 --- a/config.toml +++ b/config.toml @@ -20,6 +20,7 @@ no_posts = "No posts yet" remove_filter = "Remove filter" filtering_for = "Filtering for" made_with = "Made with" +table_of_contents = "Table of contents" [languages.de] title = "Zola ʕ•ᴥ•ʔ Bear Blog" @@ -35,6 +36,7 @@ no_posts = "Keine Einträge" remove_filter = "Filter entfernen" filtering_for = "Filtern nach" made_with = "Erstellt mit" +table_of_contents = "Inhaltsverzeichnis" [markdown] # Whether to do syntax highlighting diff --git a/templates/page.html b/templates/page.html index 2e2ef86..cb33ab5 100644 --- a/templates/page.html +++ b/templates/page.html @@ -18,7 +18,7 @@ {%- endif %} {%- if config.extra.table_of_contents.show and not page.extra.hide_table_of_contents and page.toc %} <details {%if config.extra.table_of_contents.visible_on_load %}open{% endif %}> - <summary>Table of Contents</summary> + <summary>{{ trans(key="table_of_contents", lang=lang) }}</summary> {{ macros::table_of_contents(toc=page.toc, max_level=config.extra.table_of_contents.max_level) }} </details> {%- endif %} |