From 86799aff839e3e79ec263387c9b8d13f9397632b Mon Sep 17 00:00:00 2001 From: Liam Sho Date: Sat, 21 Oct 2023 13:39:40 +0800 Subject: [PATCH] feat: add head and seo --- nuxt.config.ts | 16 ++++++++++++++++ pages/about.vue | 4 ++++ pages/index.vue | 6 ++++++ pages/poi/[slug].vue | 8 ++++++++ pages/poi/index.vue | 4 ++++ pages/posts/[slug].vue | 12 ++++++++++++ pages/posts/index.vue | 4 ++++ pages/status.vue | 4 ++++ 8 files changed, 58 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 7661cd0..71bb513 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -33,4 +33,20 @@ export default defineNuxtConfig({ version: process.env.NBR_SMP_WEBSITE_VERSION ?? "v0.0.0", }, }, + app: { + head: { + charset: "utf-8", + viewport: "width=device-width, initial-scale=1", + meta: [ + { + name: "description", + content: "Nibiru SMP - A Minecraft server for our community.", + }, + { + name: "keywords", + content: "minecraft,server,nibiru", + }, + ], + }, + }, }); diff --git a/pages/about.vue b/pages/about.vue index df8608e..2bdd748 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -34,6 +34,10 @@ const { data } = await useAsyncData("nibiru_smp_about", () => fetchAbout(), {