mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Fix linkified breadcrumb items in readthedocs theme
A doc can never have a `link` attribute so this branch never kicked in. Actually even now, this branch will still not kick in, only mkdocs-section-index makes this state possible.
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<li><a href="{{ nav.homepage.url|url }}" class="icon icon-home" aria-label="{% trans %}Docs{% endtrans %}"></a></li>
|
||||
{%- if page %}
|
||||
{%- for doc in page.ancestors[::-1] %}
|
||||
{%- if doc.link %}
|
||||
<li class="breadcrumb-item"><a href="{{ doc.link|e }}">{{ doc.title }}</a></li>
|
||||
{%- if doc.url %}
|
||||
<li class="breadcrumb-item"><a href="{{ doc.url|url }}">{{ doc.title }}</a></li>
|
||||
{%- else %}
|
||||
<li class="breadcrumb-item">{{ doc.title }}</li>
|
||||
{%- endif %}
|
||||
|
||||
Reference in New Issue
Block a user