Skip to content

Commit

Permalink
Header: Keep the link to the current page active
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlence committed Dec 6, 2024
1 parent 23831c7 commit f69fb8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions assets/sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ $header-menu-open-duration: 0.3s;
@include a-no-underline;
position: relative;
z-index: 200;

&.is-disabled {
cursor: default;
pointer-events: none;
}
}

&--menu {
Expand Down Expand Up @@ -146,11 +141,6 @@ $header-menu-open-duration: 0.3s;
transform: none;
}
}

&.is-active {
cursor: default;
pointer-events: none;
}
}

&--button-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
>
<div class="header--wrapper">
<a
class="header--logo{{ if eq .RelPermalink "/" }} is-disabled{{ end }}"
class="header--logo"
x-bind:class="isMenuOpen && 'is-open'"
href="/"
>{{ readFile "static/img/logo.svg" | strings.TrimSpace | safeHTML }}</a
Expand Down

0 comments on commit f69fb8e

Please sign in to comment.