Skip to content

Commit 1cba701

Browse files
authored
docs(README): add social poster (#73)
1 parent dc88531 commit 1cba701

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.vitepress/config.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const urlBase = env.get("DOCS_URL_BASE").asString();
1414
const packageVersion = env.get("DOCS_PACKAGE_VERSION").default(packageJson.version).asString();
1515
const googleSiteVerificationCode = "7b4Hd_giIK0EFsin6a7PWLmM_OeaC7APLZUxVGwwI6Y";
1616

17+
const hostname = "https://withcatai.github.io/node-llama-cpp/";
18+
1719
const 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") {

assets/social.poster.png

Lines changed: 3 additions & 0 deletions
Loading

docs/public/social.poster.jpg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)