mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed title rendering in version selector
This commit is contained in:
parent
f494840bd5
commit
407335d20b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -249,7 +249,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.ebd0bdb7.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.081f42fc.min.js' | url }}"></script>
|
||||
{% for script in config.extra_javascript %}
|
||||
{{ script | script_tag }}
|
||||
{% endfor %}
|
||||
|
@ -64,7 +64,7 @@ function renderVersion(version: Version): HTMLElement {
|
||||
<li class="md-version__item">
|
||||
<a href={`${url}`} class="md-version__link">
|
||||
{version.title}
|
||||
{config.version?.alias && version.aliases.length && (
|
||||
{config.version?.alias && version.aliases.length > 0 && (
|
||||
<span class="md-version__alias">
|
||||
{version.aliases[0]}
|
||||
</span>
|
||||
@ -98,7 +98,7 @@ export function renderVersionSelector(
|
||||
aria-label={translation("select.version")}
|
||||
>
|
||||
{active.title}
|
||||
{config.version?.alias && active.aliases.length && (
|
||||
{config.version?.alias && active.aliases.length > 0 && (
|
||||
<span class="md-version__alias">
|
||||
{active.aliases[0]}
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user