From e6b87d28111457cbc2f497866b71d8a2d00e35bc Mon Sep 17 00:00:00 2001 From: Alexander Fuks Date: Tue, 24 Sep 2024 04:21:34 +0400 Subject: [PATCH] chore: remove `h1` element from site title (#1960) --- _includes/sidebar.html | 4 +--- _sass/addon/commons.scss | 12 +++++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 4f0bb8c..569585f 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -11,9 +11,7 @@ {%- endif -%} -

- {{ site.title }} -

+ {{ site.title }}

{{ site.tagline }}

diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index 465cb08..e2a0e61 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -738,6 +738,9 @@ $btn-mb: 0.5rem; } .site-title { + @extend %clickable-transition; + @extend %sidebar-link-hover; + font-family: inherit; font-weight: 900; font-size: 1.75rem; @@ -745,13 +748,8 @@ $btn-mb: 0.5rem; letter-spacing: 0.25px; margin-top: 1.25rem; margin-bottom: 0.5rem; - - a { - @extend %clickable-transition; - @extend %sidebar-link-hover; - - color: var(--site-title-color); - } + width: fit-content; + color: var(--site-title-color); } .site-subtitle {