Update SEO shit

This commit is contained in:
2026-07-30 09:21:34 -05:00
parent 9df312a99f
commit a8b424b285
6 changed files with 231 additions and 130 deletions
+22 -69
View File
@@ -1,83 +1,36 @@
<script setup lang="ts">
import '~/assets/css/main.css';
const siteUrl = 'https://jaron.sh';
const personId = `${siteUrl}/#person`;
const websiteId = `${siteUrl}/#website`;
const defaultImage = `${siteUrl}/favicon.png`;
import {
DEFAULT_DESCRIPTION,
DEFAULT_IMAGE,
DEFAULT_TITLE,
SITE_NAME,
SITE_URL,
personSchema,
websiteSchema,
} from '~/utils/site';
const jsonLd = {
'@context': 'https://schema.org',
'@graph': [
websiteSchema(),
{
'@type': 'WebSite',
'@id': websiteId,
url: siteUrl,
name: 'Jaron Pate',
alternateName: 'jaron.sh',
description:
'Developer. Reformed Rust enjoyer, Golang padawan. Building producst in Austin, Texas.',
inLanguage: 'en-US',
about: { '@id': personId },
author: { '@id': personId },
publisher: { '@id': personId },
image: {
'@type': 'ImageObject',
'@id': `${siteUrl}/#website-image`,
url: defaultImage,
caption: 'Jaron Pate Logo',
},
},
{
'@type': 'Person',
'@id': personId,
name: 'Jaron Pate',
alternateName: 'jaronpate',
url: siteUrl,
email: 'mailto:yo@jp.wtf',
image: {
'@type': 'ImageObject',
'@id': `${siteUrl}/#person-image`,
url: defaultImage,
caption: 'Jaron Pate',
},
jobTitle: 'Software Engineer',
description:
'Developer. Reformed Rust enjoyer, Golang padawan. Building producst in Austin, Texas.',
disambiguatingDescription:
'Developer. Reformed Rust enjoyer, Golang padawan. Building producst in Austin, Texas.',
givenName: 'Jaron',
familyName: 'Pate',
knowsLanguage: 'en-US',
homeLocation: {
'@type': 'Place',
name: 'Austin, TX',
address: {
'@type': 'PostalAddress',
addressLocality: 'Austin',
addressRegion: 'TX',
addressCountry: 'US',
},
},
sameAs: [
'https://github.com/jaronpate',
'https://www.linkedin.com/in/jaronp/',
],
knowsAbout: [
'Software engineering',
'Frontend development',
'Product engineering',
'Web applications',
'Developer tools',
'Golang',
'Rust',
'TypeScript',
],
mainEntityOfPage: { '@id': websiteId },
...personSchema(),
mainEntityOfPage: { '@id': `${SITE_URL}/#homepage` },
},
],
};
useSeoMeta({
ogSiteName: SITE_NAME,
ogImage: DEFAULT_IMAGE,
ogImageAlt: SITE_NAME,
twitterCard: 'summary',
twitterTitle: DEFAULT_TITLE,
twitterDescription: DEFAULT_DESCRIPTION,
twitterImage: DEFAULT_IMAGE,
});
useHead({
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }],
script: [