fix(SEO): ensure title and description in all <meta>

Fix #1624
This commit is contained in:
ShareVB committed 2025-08-19 21:02:03 +02:00
1 parent 63065a59e5
commit 100563cc70
4 files changed
+94 -21

No files matched your search

-19
View File
@@ -5,15 +5,6 @@
<link rel="icon" href="favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>IT Tools - Handy online tools for developers</title>
<meta itemprop="name" content="IT Tools - Handy online tools for developers" />
<meta
name="description"
content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT."
/>
<meta
itemprop="description"
content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT."
/>
<link rel="author" href="humans.txt" />
<link rel="canonical" href="https://sharevb-it-tools.vercel.app" />
@@ -26,22 +17,12 @@
<meta property="og:url" content="https://sharevb-it-tools.vercel.app/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="IT Tools - Handy online tools for developers" />
<meta
property="og:description"
content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT."
/>
<meta property="og:image" content="https://sharevb-it-tools.vercel.app/banner.png?v=2" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@ittoolsdottech" />
<meta name="twitter:creator" content="@cthmsst" />
<meta name="twitter:title" content="IT Tools - Handy online tools for developers" />
<meta
name="twitter:description"
content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT."
/>
<meta name="twitter:image" content="https://sharevb-it-tools.vercel.app/banner.png?v=2" />
<meta name="twitter:image:alt" content="IT Tools - Handy online tools for developers" />
</head>
+24
View File
@@ -14,10 +14,34 @@ const route = useRoute();
const head = computed<HeadObject>(() => ({
title: `${route.meta.name} - IT Tools`,
meta: [
{
itemprop: 'name',
content: `${route.meta.name} - IT Tools`,
},
{
property: 'og:title',
content: `${route.meta.name} - IT Tools`,
},
{
property: 'twitter:title',
content: `${route.meta.name} - IT Tools`,
},
{
name: 'description',
content: route.meta?.description as string,
},
{
itemprop: 'description',
content: route.meta?.description as string,
},
{
property: 'og:description',
content: route.meta?.description as string,
},
{
property: 'twitter:description',
content: route.meta?.description as string,
},
{
name: 'keywords',
content: ((route.meta.keywords ?? []) as string[]).join(','),
+35 -1
View File
@@ -1,7 +1,41 @@
<script setup lang="ts">
import { useHead } from '@vueuse/head';
useHead({ title: 'About - IT Tools' });
const desc = 'Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.';
const title = 'About - IT Tools';
useHead({
title,
meta: [
{
itemprop: 'name',
content: title,
},
{
property: 'og:title',
content: title,
},
{
property: 'twitter:title',
content: title,
},
{
name: 'description',
content: desc,
},
{
itemprop: 'description',
content: desc,
},
{
property: 'og:description',
content: desc,
},
{
property: 'twitter:description',
content: desc,
},
],
});
</script>
<template>
+35 -1
View File
@@ -22,8 +22,42 @@ const homeCustomMarkdown = computedAsync(async () => {
});
const toolStore = useToolStore();
const desc = 'Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.';
const title = 'IT Tools - Handy online tools for developers';
useHead({ title: 'IT Tools - Handy online tools for developers' });
useHead({
title,
meta: [
{
itemprop: 'name',
content: title,
},
{
property: 'og:title',
content: title,
},
{
property: 'twitter:title',
content: title,
},
{
name: 'description',
content: desc,
},
{
itemprop: 'description',
content: desc,
},
{
property: 'og:description',
content: desc,
},
{
property: 'twitter:description',
content: desc,
},
],
});
const { t } = useI18n();
const favoriteTools = computed(() => toolStore.favoriteTools);