Fixed title rendering in version selector

This commit is contained in:
squidfunk 2024-05-16 11:39:47 +02:00
parent f494840bd5
commit 407335d20b
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
4 changed files with 7 additions and 7 deletions

View File

@ -249,7 +249,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% 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 %} {% for script in config.extra_javascript %}
{{ script | script_tag }} {{ script | script_tag }}
{% endfor %} {% endfor %}

View File

@ -64,7 +64,7 @@ function renderVersion(version: Version): HTMLElement {
<li class="md-version__item"> <li class="md-version__item">
<a href={`${url}`} class="md-version__link"> <a href={`${url}`} class="md-version__link">
{version.title} {version.title}
{config.version?.alias && version.aliases.length && ( {config.version?.alias && version.aliases.length > 0 && (
<span class="md-version__alias"> <span class="md-version__alias">
{version.aliases[0]} {version.aliases[0]}
</span> </span>
@ -98,7 +98,7 @@ export function renderVersionSelector(
aria-label={translation("select.version")} aria-label={translation("select.version")}
> >
{active.title} {active.title}
{config.version?.alias && active.aliases.length && ( {config.version?.alias && active.aliases.length > 0 && (
<span class="md-version__alias"> <span class="md-version__alias">
{active.aliases[0]} {active.aliases[0]}
</span> </span>