add schema.org json

This commit is contained in:
2025-10-05 15:17:57 +07:00
parent a40cd51fb3
commit 70f3528be3
+16 -1
View File
@@ -57,17 +57,32 @@ export default defineNuxtConfig({
charset: 'utf-8', charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1', viewport: 'width=device-width, initial-scale=1',
link: [ link: [
{ rel: 'icon', type: 'image/vnd.microsoft.icon', href: '/favicon.ico' }, // { rel: 'icon', type: 'image/vnd.microsoft.icon', href: '/favicon.ico' },
{ rel: 'icon', type: 'image/svg+xml', href: '/tempfavicon.svg' },
// { rel: 'stylesheet', href: '/style.css' }, // { rel: 'stylesheet', href: '/style.css' },
// TYPEFACES // TYPEFACES
{ rel: 'preconnect', href: 'https://fonts.thawiang.com/' }, { rel: 'preconnect', href: 'https://fonts.thawiang.com/' },
{ rel: 'stylesheet', href: 'https://fonts.thawiang.com/open-sans/open-sans-less.css' }, { rel: 'stylesheet', href: 'https://fonts.thawiang.com/open-sans/open-sans-less.css' },
{ rel: 'stylesheet', href: 'https://fonts.thawiang.com/sarabun/sarabun.css' } { rel: 'stylesheet', href: 'https://fonts.thawiang.com/sarabun/sarabun.css' }
],
script: [
{
type: 'application/ld+json',
innerHTML: JSON.stringify({
"@context": "https://schema.org",
"@type": "WebSite",
"name": process.env.NUXT_PUBLIC_SITE_NAME,
"url": process.env.NUXT_PUBLIC_BASE_URL
})
}
] ]
}, },
}, },
colorMode: { colorMode: {
preference: 'light' preference: 'light'
},
routeRules: {
"*": { experimentalNoScripts: true }, // one level deep, render all pages statically
} }
// i18n: { // i18n: {
// baseUrl: process.env.NUXT_PUBLIC_BASE_URL, // baseUrl: process.env.NUXT_PUBLIC_BASE_URL,