From 638539e7b9d12ba7960177ef2f9578b6598cba3e Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 3 Jun 2021 20:10:52 +0200 Subject: [PATCH 1/3] added aria-label to header link To remove the "Links do not have a discernible name" warning on google chromes lighthouse tool --- layouts/_default/_markup/render-heading.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index 945bab86..179e3c0b 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1 +1 @@ -{{ .Text | safeHTML }} \ No newline at end of file +{{ .Text | safeHTML }} \ No newline at end of file From 67ad2b9d9cd8fa683f64831f09b51f14a8c8886b Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 3 Jun 2021 21:36:22 +0200 Subject: [PATCH 2/3] giving back cursor pointer after removing a href --- assets/css/_partial/_header.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/css/_partial/_header.scss b/assets/css/_partial/_header.scss index 01249bd9..3d71c990 100644 --- a/assets/css/_partial/_header.scss +++ b/assets/css/_partial/_header.scss @@ -90,6 +90,7 @@ position: absolute; left: auto; right: 1rem; + cursor: pointer; } .search-toggle { @@ -141,6 +142,10 @@ } } +.theme-switch { + cursor: pointer; +} + .theme-switch i { @include transform(rotate(225deg)); } From f0965334bc76f2cf4c87751d323a7b9009a66f5c Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 3 Jun 2021 21:37:09 +0200 Subject: [PATCH 3/3] changed from a href to span for lighthouse seo check --- layouts/partials/header.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4ca3a6ea..092f45b0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -72,20 +72,20 @@

Основная навигация

{{- if .Site.Params.search.enable -}} - + - - + + - + {{- end -}} - + - + @@ -129,19 +129,19 @@

Основная навигация

{{- end -}} {{- $currentPage := . -}} @@ -161,9 +161,9 @@

Основная навигация

{{- end -}} - + - + {{- if .Site.IsMultiLingual -}} {{- .Language.LanguageName -}}