Skip to content

Commit e6b87d2

Browse files
authored
chore: remove h1 element from site title (#1960)
1 parent 7374906 commit e6b87d2

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

_includes/sidebar.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
{%- endif -%}
1212
</a>
1313

14-
<h1 class="site-title">
15-
<a href="{{ '/' | relative_url }}">{{ site.title }}</a>
16-
</h1>
14+
<a class="site-title d-block" href="{{ '/' | relative_url }}">{{ site.title }}</a>
1715
<p class="site-subtitle fst-italic mb-0">{{ site.tagline }}</p>
1816
</header>
1917
<!-- .profile-wrapper -->

_sass/addon/commons.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -738,20 +738,18 @@ $btn-mb: 0.5rem;
738738
}
739739

740740
.site-title {
741+
@extend %clickable-transition;
742+
@extend %sidebar-link-hover;
743+
741744
font-family: inherit;
742745
font-weight: 900;
743746
font-size: 1.75rem;
744747
line-height: 1.2;
745748
letter-spacing: 0.25px;
746749
margin-top: 1.25rem;
747750
margin-bottom: 0.5rem;
748-
749-
a {
750-
@extend %clickable-transition;
751-
@extend %sidebar-link-hover;
752-
753-
color: var(--site-title-color);
754-
}
751+
width: fit-content;
752+
color: var(--site-title-color);
755753
}
756754

757755
.site-subtitle {

0 commit comments

Comments
 (0)