@@ -14,6 +14,8 @@ const urlBase = env.get("DOCS_URL_BASE").asString();
14
14
const packageVersion = env . get ( "DOCS_PACKAGE_VERSION" ) . default ( packageJson . version ) . asString ( ) ;
15
15
const googleSiteVerificationCode = "7b4Hd_giIK0EFsin6a7PWLmM_OeaC7APLZUxVGwwI6Y" ;
16
16
17
+ const hostname = "https://withcatai.github.io/node-llama-cpp/" ;
18
+
17
19
const chatWrappersOrder = [
18
20
"GeneralChatPromptWrapper" ,
19
21
"LlamaChatPromptWrapper" ,
@@ -44,7 +46,7 @@ export default defineConfig({
44
46
45
47
base : urlBase ,
46
48
sitemap : {
47
- hostname : "https://withcatai.github.io/node-llama-cpp/" ,
49
+ hostname,
48
50
transformItems ( items ) {
49
51
return items . map ( ( item ) => {
50
52
if ( item . url . includes ( "api/" ) || item . url . includes ( "guide/cli/" ) ) {
@@ -65,7 +67,16 @@ export default defineConfig({
65
67
[ "meta" , { name : "theme-color" , content : "#dd773e" , media : "(prefers-color-scheme: dark)" } ] ,
66
68
[ "meta" , { name : "og:type" , content : "website" } ] ,
67
69
[ "meta" , { name : "og:locale" , content : "en" } ] ,
68
- [ "meta" , { name : "og:site_name" , content : "node-llama-cpp" } ]
70
+ [ "meta" , { name : "og:site_name" , content : "node-llama-cpp" } ] ,
71
+ [ "meta" , { name : "og:title" , content : "node-llama-cpp - node.js bindings for llama.cpp" } ] ,
72
+ [ "meta" , { name : "og:description" , content : "Run AI models locally on your machine with node.js bindings for llama.cpp" } ] ,
73
+ [ "meta" , { name : "og:image" , content : hostname + "social.poster.jpg" } ] ,
74
+ [ "meta" , { name : "og:image:width" , content : "4096" } ] ,
75
+ [ "meta" , { name : "og:image:height" , content : "2048" } ] ,
76
+ [ "meta" , { name : "twitter:image:src" , content : hostname + "social.poster.jpg" } ] ,
77
+ [ "meta" , { name : "twitter:card" , content : "summary_large_image" } ] ,
78
+ [ "meta" , { name : "twitter:title" , content : "node-llama-cpp - node.js bindings for llama.cpp" } ] ,
79
+ [ "meta" , { name : "twitter:description" , content : "Run AI models locally on your machine with node.js bindings for llama.cpp" } ]
69
80
] ,
70
81
transformHead ( { pageData, head} ) {
71
82
if ( pageData . filePath === "index.md" ) {
0 commit comments