Skip to content

Commit 59648d6

Browse files
committed
✨ add home to breadcrumbs
1 parent 67d6c05 commit 59648d6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html

+10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1+
{% load i18n %}
12
{% load fds_cms_tags %}
3+
{% load cms_tags %}
4+
5+
<li class="breadcrumb-item">
6+
{% page_url "home" as home_url %}
7+
<a href="{{ home_url|default:'/' }}">
8+
<i class="fa fa-home"></i>
9+
<span class="sr-only">{% trans "Home Page" %}</span>
10+
</a>
11+
</li>
212

313
{% get_breadcrumb_ancestor ancestors.0 as custom_ancestor %}
414
{% if custom_ancestor %}

frontend/styles/header.scss

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ $c: map.get($container-max-widths, 'xxl');
2828
display: block;
2929
font-weight: 600;
3030
color: var(--bs-emphasis-color);
31+
padding: 0;
3132

3233
&:hover {
3334
text-decoration: none;
@@ -189,3 +190,9 @@ $c: map.get($container-max-widths, 'xxl');
189190
}
190191
}
191192
}
193+
194+
@include media-breakpoint-up(md) {
195+
header#header:has(+ nav .breadcrumb) {
196+
border-bottom: 1px var(--bs-border-color-translucent) solid;
197+
}
198+
}

0 commit comments

Comments
 (0)