Skip to content

Commit

Permalink
don't elide middle levels of breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Jun 17, 2024
1 parent fc335e7 commit b2f2510
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{# Displays (and links to) the parent section(s) of the currently viewed page. #}
{%- block breadcrumbs %}
{#
If we have more than 3 parents (excluding the home page) then we remove
The ones in the middle and add an ellipsis.
#}
{% if parents|length>2 %}
{% set parents=[parents[0], {"title": '<i class="fa-solid fa-ellipsis"></i>'}, parents[-1]] %}
{% endif %}

{#- Hide breadcrumbs on the home page #}
{% if title and pagename != root_doc %}
Expand Down

0 comments on commit b2f2510

Please sign in to comment.