Added md-ellipsis span to toc-item.html

This commit is contained in:
Alexander Voss 2023-11-17 09:26:04 +00:00 committed by GitHub
parent fc07e0a557
commit 8fb97e7132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,9 @@
-#} -#}
<li class="md-nav__item"> <li class="md-nav__item">
<a href="{{ toc_item.url }}" class="md-nav__link"> <a href="{{ toc_item.url }}" class="md-nav__link">
<span class="md-ellipsis">
{{ toc_item.title }} {{ toc_item.title }}
</span>
</a> </a>
{% if toc_item.children %} {% if toc_item.children %}
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}"> <nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">

View File

@ -23,7 +23,9 @@
<!-- Table of contents item --> <!-- Table of contents item -->
<li class="md-nav__item"> <li class="md-nav__item">
<a href="{{ toc_item.url }}" class="md-nav__link"> <a href="{{ toc_item.url }}" class="md-nav__link">
<span class="md-ellipsis">
{{ toc_item.title }} {{ toc_item.title }}
</span>
</a> </a>
<!-- Table of contents list --> <!-- Table of contents list -->