mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added title to back-to-top button (#2631)
* Add title to to-top button * Rename
This commit is contained in:
parent
26d00333b0
commit
44d6fb04c7
@ -180,7 +180,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if "navigation.top" in features %}
|
{% 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" %}
|
{% include ".icons/material/arrow-up.svg" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -33,5 +33,6 @@
|
|||||||
"source.file.date.updated": "Last update",
|
"source.file.date.updated": "Last update",
|
||||||
"source.file.date.created": "Created",
|
"source.file.date.created": "Created",
|
||||||
"tabs.title": "Tabs",
|
"tabs.title": "Tabs",
|
||||||
"toc.title": "Table of contents"
|
"toc.title": "Table of contents",
|
||||||
|
"top.title": "Back to top"
|
||||||
}[key] }}{% endmacro %}
|
}[key] }}{% endmacro %}
|
||||||
|
@ -341,6 +341,7 @@
|
|||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
class="md-top md-icon"
|
class="md-top md-icon"
|
||||||
|
title="{{ lang.t('top.title') }}"
|
||||||
data-md-component="top"
|
data-md-component="top"
|
||||||
data-md-state="hidden"
|
data-md-state="hidden"
|
||||||
>
|
>
|
||||||
|
@ -53,5 +53,6 @@
|
|||||||
"source.file.date.updated": "Last update",
|
"source.file.date.updated": "Last update",
|
||||||
"source.file.date.created": "Created",
|
"source.file.date.created": "Created",
|
||||||
"tabs.title": "Tabs",
|
"tabs.title": "Tabs",
|
||||||
"toc.title": "Table of contents"
|
"toc.title": "Table of contents",
|
||||||
|
"top.title": "Back to top"
|
||||||
}[key] }}{% endmacro %}
|
}[key] }}{% endmacro %}
|
||||||
|
Loading…
Reference in New Issue
Block a user