From 44d6fb04c7e5b5788a074ddb085f7c04a1ed498b Mon Sep 17 00:00:00 2001 From: Benjamin Staneck Date: Tue, 4 May 2021 12:15:41 +0200 Subject: [PATCH] Added title to back-to-top button (#2631) * Add title to to-top button * Rename --- material/base.html | 2 +- material/partials/languages/en.html | 3 ++- src/base.html | 1 + src/partials/languages/en.html | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/material/base.html b/material/base.html index 1db781931..af6e58f42 100644 --- a/material/base.html +++ b/material/base.html @@ -180,7 +180,7 @@ {% if "navigation.top" in features %} - + {% include ".icons/material/arrow-up.svg" %} {% endif %} diff --git a/material/partials/languages/en.html b/material/partials/languages/en.html index 1eb770050..359e40789 100644 --- a/material/partials/languages/en.html +++ b/material/partials/languages/en.html @@ -33,5 +33,6 @@ "source.file.date.updated": "Last update", "source.file.date.created": "Created", "tabs.title": "Tabs", - "toc.title": "Table of contents" + "toc.title": "Table of contents", + "top.title": "Back to top" }[key] }}{% endmacro %} diff --git a/src/base.html b/src/base.html index 4711e73b9..66b165cd7 100644 --- a/src/base.html +++ b/src/base.html @@ -341,6 +341,7 @@ diff --git a/src/partials/languages/en.html b/src/partials/languages/en.html index 8f0239eed..edd63d12c 100644 --- a/src/partials/languages/en.html +++ b/src/partials/languages/en.html @@ -53,5 +53,6 @@ "source.file.date.updated": "Last update", "source.file.date.created": "Created", "tabs.title": "Tabs", - "toc.title": "Table of contents" + "toc.title": "Table of contents", + "top.title": "Back to top" }[key] }}{% endmacro %}