@@ -73,21 +73,68 @@ export const shared = defineConfig({
73
73
74
74
/* prettier-ignore */
75
75
head : [
76
+ // base
76
77
[ 'link' , { rel : 'icon' , type : 'image/svg+xml' , href : `${ process . env . NODE_ENV === 'production' ? '/vue-hooks-plus/logo.svg' : '/logo.svg' } ` } ] ,
77
78
[ 'link' , { rel : 'icon' , type : 'image/png' , href : `${ process . env . NODE_ENV === 'production' ? '/vue-hooks-plus/logo.png' : '/logo.png' } ` } ] ,
78
79
[ 'meta' , { name : 'theme-color' , content : '#000000' } ] ,
80
+
81
+ // seo
82
+ [ 'meta' , { name : 'description' , content : 'High performance & Simplicity Vue3 Hooks library.' } ] ,
83
+ [ 'meta' , { name : 'keywords' , content : 'vue, hooks, vue-hooks, vue-hooks-plus, composition-api, vue3, frontend, web, javascript, typescript, SSR' } ] ,
84
+
85
+ // og
79
86
[ 'meta' , { property : 'og:type' , content : 'website' } ] ,
80
87
[ 'meta' , { property : 'og:locale' , content : 'en' } ] ,
81
88
[ 'meta' , { property : 'og:title' , content : 'VueHooks plus | High-performance Hooks Library for Vue' } ] ,
89
+ [ 'meta' , { property : 'og:description' , content : 'A high-performance, comprehensive, and reliable Vue 3 hooks library.' } ] ,
82
90
[ 'meta' , { property : 'og:site_name' , content : 'VueHooks plus' } ] ,
83
91
[ 'meta' , { property : 'og:url' , content : 'https://inhiblabcore.github.io/vue-hooks-plus/' } ] ,
92
+ [ 'meta' , { property : 'og:image' , content : 'https://inhiblabcore.github.io/vue-hooks-plus/logo.png' } ] ,
93
+
94
+ // twitter
95
+ [ 'meta' , { name : 'twitter:card' , content : 'summary_large_image' } ] ,
96
+ [ 'meta' , { name : 'twitter:site' , content : '@Yong_Git' } ] ,
97
+ [ 'meta' , { name : 'twitter:image' , content : 'https://inhiblabcore.github.io/vue-hooks-plus/logo.png' } ] ,
98
+
99
+ // hreflang
100
+ [ 'link' , { rel : 'alternate' , hreflang : 'x-default' , href : 'https://inhiblabcore.github.io/vue-hooks-plus/' } ] ,
101
+ [ 'link' , { rel : 'alternate' , hreflang : 'en-us' , href : 'https://inhiblabcore.github.io/vue-hooks-plus/' } ] ,
102
+ [ 'link' , { rel : 'alternate' , hreflang : 'zh-cn' , href : 'https://inhiblabcore.github.io/vue-hooks-plus/zh/' } ] ,
103
+
104
+ // script
84
105
[ 'script' , { src : 'https://cdn.usefathom.com/script.js' , 'data-site' : 'AZBRSFGG' , 'data-spa' : 'auto' , defer : '' } ] ,
85
106
[
86
107
'script' ,
87
108
{
88
109
src : process . env . NODE_ENV === 'production' ? '/vue-hooks-plus/sponsor/sponsor.iife.js' : '/sponsor/sponsor.iife.js' ,
89
110
defer : ''
90
111
}
112
+ ] ,
113
+ [
114
+ 'script' ,
115
+ { type : 'application/ld+json' } ,
116
+ JSON . stringify ( {
117
+ '@context' : 'https://schema.org' ,
118
+ '@type' : 'WebSite' ,
119
+ 'name' : 'VueHooks plus' ,
120
+ 'url' : 'https://inhiblabcore.github.io/vue-hooks-plus/' ,
121
+ 'description' : 'A high-performance, comprehensive, and reliable Vue 3 hooks library.' ,
122
+ 'keywords' : [ 'vue' , 'hooks' , 'vue-hooks' , 'vue-hooks-plus' , 'composition-api' , 'vue3' , 'frontend' , 'web' , 'javascript' , 'typescript' , 'SSR' ] ,
123
+ 'potentialAction' : {
124
+ '@type' : 'SearchAction' ,
125
+ 'target' : 'https://inhiblabcore.github.io/vue-hooks-plus/?q={search_term_string}' ,
126
+ 'query-input' : 'required name=search_term_string'
127
+ } ,
128
+ 'publisher' : {
129
+ '@type' : 'Organization' ,
130
+ 'name' : 'InhiblabCore' ,
131
+ 'url' : 'https://github.com/InhiblabCore' ,
132
+ 'logo' : {
133
+ '@type' : 'ImageObject' ,
134
+ 'url' : 'https://inhiblabcore.github.io/vue-hooks-plus/logo.png'
135
+ }
136
+ }
137
+ } )
91
138
]
92
139
] ,
93
140
0 commit comments