From 3d73cfa7bf0d4684037d521e6b4f9f8246b207d5 Mon Sep 17 00:00:00 2001 From: Alexandre Canijo Date: Thu, 8 Sep 2022 02:32:44 +0100 Subject: [PATCH] chore: fixing issues with accessibility and seo on the last lighthouse report --- components/Tutorial.vue | 25 +++++++++++++++++++++++-- nuxt.config.js | 11 +++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/components/Tutorial.vue b/components/Tutorial.vue index c0377a8..831ed3c 100644 --- a/components/Tutorial.vue +++ b/components/Tutorial.vue @@ -12,6 +12,8 @@ class="flex justify-center pt-8 sm:pt-0" href="https://nuxtjs.org" target="_blank" + title="nuxtjs.org" + aria-label="nuxtjs.org" >
- - + + diff --git a/nuxt.config.js b/nuxt.config.js index 3c5de3f..6ae832e 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -2,16 +2,23 @@ export default { // Target: https://go.nuxtjs.dev/config-target target: 'static', + modern: ({ isDev }) => !isDev, + // Global page headers: https://go.nuxtjs.dev/config-head head: { - title: 'nuxt2-lighthouse-boilerplate', + title: 'Nuxt2 Lighthouse Boilerplate', htmlAttrs: { lang: 'en', }, meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, - { hid: 'description', name: 'description', content: '' }, + { + hid: 'description', + name: 'description', + content: + 'Nuxt2 Boilerplate with performance in mind, trying to achieve 100% on Lighthouse', + }, { name: 'format-detection', content: 'telephone=no' }, ], link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],