From 53ea0bd15fa2281b040d191a5efc16266b54e0de Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 13 Sep 2021 14:32:52 +0200 Subject: Fixed google's lighthouse seo warnings missing description meta tag tap targets too small (menu items did not have margins) --- assets/header.css | 8 ++++++++ layouts/_default/baseof.html | 2 +- layouts/partials/nav.html | 17 +++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/assets/header.css b/assets/header.css index 4904b64..9831912 100644 --- a/assets/header.css +++ b/assets/header.css @@ -28,4 +28,12 @@ header nav ul li a:hover { float: left; text-transform: uppercase; font-weight: 700; + margin-right: 4px; +} +.nav-menu-margin-left { + margin-left: 4px; +} +.nav-menu-margins-left-and-right { + margin-left: 4px; + margin-right: 4px; } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 07920c1..5faf4e4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -23,7 +23,7 @@ {{ end -}} {{ $title }} - + {{- partial "nav.html" . -}} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 109f687..eeec5f2 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -3,14 +3,27 @@