build(aio): fix API docs breadcrumbs (#22446)

This also prevents some extra `<a>` elements inserted by the browser's
trying to fix the HTML structure, which also fixes the `.header-link`
added in ToC.

Fixes #22387
Closes #22437

PR Close #22446
This commit is contained in:
George Kalpakas 2018-02-25 23:56:21 +02:00 committed by Alex Eagle
parent 4bd3e5f92f
commit d100f1b187
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
</script>
{% for crumb in doc.breadCrumbs %}{% if not loop.last %}
{$ slash() $}
{% if crumb.path %}<a href="{$ crumb.path $}">{$ crumb.text $}<a>{% else %}{$ crumb.text $}{% endif %}
{% if crumb.path %}<a href="{$ crumb.path $}">{$ crumb.text $}</a>{% else %}{$ crumb.text $}{% endif %}
{% endif %}{% endfor %}
</div>
<header class="api-header">
@ -43,4 +43,4 @@
<div class="api-body">
{% block body %}{% endblock %}
</div>
</article>
</article>