11<script setup lang="ts">
2- const { seo } = useAppConfig ();
3- const site = useSiteConfig ();
2+ const { seo } = useAppConfig ()
3+ const site = useSiteConfig ()
44
5- const { data : navigation } = await useAsyncData (' navigation' , () => queryCollectionNavigation (' docs' ));
5+ const { data : navigation } = await useAsyncData (' navigation' , () => queryCollectionNavigation (' docs' ))
66const { data : files } = useLazyAsyncData (' search' , () => queryCollectionSearchSections (' docs' ), {
7- server: false ,
8- });
7+ server: false
8+ })
99
10- const siteUrl = site .url || ' https://vercube.dev' ;
11- const siteName = seo ?.siteName || ' Vercube' ;
10+ const siteUrl = site .url || ' https://vercube.dev'
11+ const siteName = seo ?.siteName || ' Vercube'
1212
1313useHead ({
14- meta: [{ name: ' viewport' , content: ' width=device-width, initial-scale=1' }],
14+ meta: [
15+ { name: ' viewport' , content: ' width=device-width, initial-scale=1' }
16+ ],
1517 link: [
1618 { rel: ' icon' , type: ' image/png' , href: ' /favicon-96x96.png' , sizes: ' 96x96' },
1719 { rel: ' icon' , type: ' image/svg+xml' , href: ' /favicon.svg' },
1820 { rel: ' shortcut icon' , href: ' /favicon.ico' },
1921 { rel: ' apple-touch-icon' , sizes: ' 180x180' , href: ' /apple-touch-icon.png' },
20- { rel: ' manifest' , href: ' /site.webmanifest' },
22+ { rel: ' manifest' , href: ' /site.webmanifest' }
2123 ],
2224 htmlAttrs: {
23- lang: ' en' ,
24- },
25- });
25+ lang: ' en'
26+ }
27+ })
2628
2729useSeoMeta ({
2830 // Global defaults
@@ -74,9 +76,9 @@ useSeoMeta({
7476 ' api framework' ,
7577 ' modern javascript' ,
7678 ' type-safe' ,
77- ' zero-config' ,
78- ].join (' , ' ),
79- });
79+ ' zero-config'
80+ ].join (' , ' )
81+ })
8082
8183// Global JSON-LD structured data
8284useHead ({
@@ -86,48 +88,48 @@ useHead({
8688 innerHTML: JSON .stringify ({
8789 ' @context' : ' https://schema.org' ,
8890 ' @type' : ' WebSite' ,
89- name: ' Vercube' ,
90- url: siteUrl ,
91- potentialAction: {
91+ ' name' : ' Vercube' ,
92+ ' url' : siteUrl ,
93+ ' potentialAction' : {
9294 ' @type' : ' SearchAction' ,
93- target: {
95+ ' target' : {
9496 ' @type' : ' EntryPoint' ,
95- urlTemplate: ` ${siteUrl }/docs?q={search_term_string} ` ,
97+ ' urlTemplate' : ` ${siteUrl }/docs?q={search_term_string} `
9698 },
97- ' query-input' : ' required name=search_term_string' ,
98- },
99- }),
99+ ' query-input' : ' required name=search_term_string'
100+ }
101+ })
100102 },
101103 {
102104 type: ' application/ld+json' ,
103105 innerHTML: JSON .stringify ({
104106 ' @context' : ' https://schema.org' ,
105107 ' @type' : ' SoftwareApplication' ,
106- name: ' Vercube' ,
107- applicationCategory: ' DeveloperApplication' ,
108- operatingSystem: ' Node.js, Bun, Deno' ,
109- url: siteUrl ,
110- author: {
108+ ' name' : ' Vercube' ,
109+ ' applicationCategory' : ' DeveloperApplication' ,
110+ ' operatingSystem' : ' Node.js, Bun, Deno' ,
111+ ' url' : siteUrl ,
112+ ' author' : {
111113 ' @type' : ' Organization' ,
112- name: ' Vercube' ,
113- url: ' https://github.com/vercube' ,
114+ ' name' : ' Vercube' ,
115+ ' url' : ' https://github.com/vercube'
114116 },
115- offers: {
117+ ' offers' : {
116118 ' @type' : ' Offer' ,
117- price: ' 0' ,
118- priceCurrency: ' USD' ,
119+ ' price' : ' 0' ,
120+ ' priceCurrency' : ' USD'
119121 },
120- aggregateRating: {
122+ ' aggregateRating' : {
121123 ' @type' : ' AggregateRating' ,
122- ratingValue: ' 5' ,
123- ratingCount: ' 1' ,
124- },
125- }),
126- },
127- ],
128- });
124+ ' ratingValue' : ' 5' ,
125+ ' ratingCount' : ' 1'
126+ }
127+ })
128+ }
129+ ]
130+ })
129131
130- provide (' navigation' , navigation );
132+ provide (' navigation' , navigation )
131133 </script >
132134
133135<template >
0 commit comments