@@ -14,6 +14,8 @@ const urlBase = env.get("DOCS_URL_BASE").asString();
1414const packageVersion = env . get ( "DOCS_PACKAGE_VERSION" ) . default ( packageJson . version ) . asString ( ) ;
1515const googleSiteVerificationCode = "7b4Hd_giIK0EFsin6a7PWLmM_OeaC7APLZUxVGwwI6Y" ;
1616
17+ const hostname = "https://withcatai.github.io/node-llama-cpp/" ;
18+
1719const chatWrappersOrder = [
1820 "GeneralChatPromptWrapper" ,
1921 "LlamaChatPromptWrapper" ,
@@ -44,7 +46,7 @@ export default defineConfig({
4446
4547 base : urlBase ,
4648 sitemap : {
47- hostname : "https://withcatai.github.io/node-llama-cpp/" ,
49+ hostname,
4850 transformItems ( items ) {
4951 return items . map ( ( item ) => {
5052 if ( item . url . includes ( "api/" ) || item . url . includes ( "guide/cli/" ) ) {
@@ -65,7 +67,16 @@ export default defineConfig({
6567 [ "meta" , { name : "theme-color" , content : "#dd773e" , media : "(prefers-color-scheme: dark)" } ] ,
6668 [ "meta" , { name : "og:type" , content : "website" } ] ,
6769 [ "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" } ]
6980 ] ,
7081 transformHead ( { pageData, head} ) {
7182 if ( pageData . filePath === "index.md" ) {
0 commit comments