Skip to content

Commit

Permalink
✨ add home to breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Feb 5, 2024
1 parent 67d6c05 commit 59648d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{% load i18n %}
{% load fds_cms_tags %}
{% load cms_tags %}

<li class="breadcrumb-item">
{% page_url "home" as home_url %}
<a href="{{ home_url|default:'/' }}">
<i class="fa fa-home"></i>
<span class="sr-only">{% trans "Home Page" %}</span>
</a>
</li>

{% get_breadcrumb_ancestor ancestors.0 as custom_ancestor %}
{% if custom_ancestor %}
Expand Down
7 changes: 7 additions & 0 deletions frontend/styles/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ $c: map.get($container-max-widths, 'xxl');
display: block;
font-weight: 600;
color: var(--bs-emphasis-color);
padding: 0;

&:hover {
text-decoration: none;
Expand Down Expand Up @@ -189,3 +190,9 @@ $c: map.get($container-max-widths, 'xxl');
}
}
}

@include media-breakpoint-up(md) {
header#header:has(+ nav .breadcrumb) {
border-bottom: 1px var(--bs-border-color-translucent) solid;
}
}

0 comments on commit 59648d6

Please sign in to comment.