Added title to back-to-top button (#2631)

* Add title to to-top button

* Rename
This commit is contained in:
Benjamin Staneck
2021-05-04 12:15:41 +02:00
committed by GitHub
parent 26d00333b0
commit 44d6fb04c7
4 changed files with 6 additions and 3 deletions

View File

@@ -180,7 +180,7 @@
</div>
</div>
{% if "navigation.top" in features %}
<a href="#" class="md-top md-icon" data-md-component="top" data-md-state="hidden">
<a href="#" class="md-top md-icon" title="{{ lang.t('top.title') }}" data-md-component="top" data-md-state="hidden">
{% include ".icons/material/arrow-up.svg" %}
</a>
{% endif %}

View File

@@ -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 %}

View File

@@ -341,6 +341,7 @@
<a
href="#"
class="md-top md-icon"
title="{{ lang.t('top.title') }}"
data-md-component="top"
data-md-state="hidden"
>

View File

@@ -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 %}