From 4f678bd6bd17658b058889c2b630f098103d54ef Mon Sep 17 00:00:00 2001 From: Ivan Yv Date: Wed, 31 Jan 2024 21:30:59 +0300 Subject: [PATCH] Better SEO --- src/app.vue | 4 ++-- src/components/AppHeader.vue | 9 +++++---- src/error.vue | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/app.vue b/src/app.vue index 15b8e3a..8a44f52 100644 --- a/src/app.vue +++ b/src/app.vue @@ -25,7 +25,7 @@ const route = useRoute(); const { t } = useI18n(); const img = useImage(); const backgroundImg = computed(() => { - const imgUrl = img('/images/bg.png', { width: 3500 }) + const imgUrl = img('/images/bg.png', { width: 3500, format: "webp" }) return `url('${imgUrl}')`; }); @@ -52,7 +52,7 @@ const meta = computed(() => { }, { name: "og:image", - content: img("/images/ogimage.png", { width: 251 }), + content: img("/images/ogimage.png", { width: 251, format: "webp" }), }, { name: "og:site_name", diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 1a7def5..b4f6fcf 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -11,8 +11,9 @@ py-2 md:py-3 "> - - + + +