diff --git a/_includes/site/breadcrumbs.html b/_includes/site/breadcrumbs.html index 26bc055e..ef7f708d 100644 --- a/_includes/site/breadcrumbs.html +++ b/_includes/site/breadcrumbs.html @@ -1,15 +1,17 @@
{% endfor %} @@ -31,7 +33,7 @@ {{ separator }} - {{ page_title }} + {{ page_title }} {% endif %} diff --git a/_layouts/base.html b/_layouts/base.html index 9a9aee54..df642744 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -8,7 +8,7 @@ {% include site/nav.html %} -{% include site/breadcrumbs.html %} +{% include site/breadcrumbs.html page=page %}
{{ content }} diff --git a/_sass/components/_breadcrumbs.scss b/_sass/components/_breadcrumbs.scss index 0c6c33ae..4f67d4d1 100644 --- a/_sass/components/_breadcrumbs.scss +++ b/_sass/components/_breadcrumbs.scss @@ -1,13 +1,16 @@ .section-nav { - margin-block-start: var(--block-flow-sm); transition: 0.5s opacity; &:not(:hover) { opacity: 0.6; } + + margin-block-start: var(--block-flow-xs); + &:first-child { + margin-block-start: var(--block-flow-sm); + } } .breadcrumbs { - position: relative; display: flex; --link-color: var(--light-text); @@ -22,10 +25,10 @@ .breadcrumb { display: inline flex; - > a { + > :first-child { padding-inline-end: var(--padding-xs); } - &:not(:first-child) > a { + &:not(:first-child) > :first-child { padding-inline-start: var(--padding-xs); } }