Skip to content

Commit

Permalink
Merge pull request #123 from Ubugeeei/122-og-image
Browse files Browse the repository at this point in the history
other: #122 🔹 og
  • Loading branch information
ubugeeei authored Aug 27, 2023
2 parents 3e518be + ab48782 commit 9002550
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
Binary file added book/images/logo/chibivue-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 27 additions & 3 deletions book/online-book/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { defineConfig } from "vitepress";
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "The chibivue Book",
description: "Writing Vue.js: Step by Step, from just one line of \"Hello, World\".",
description:
'Writing Vue.js: Step by Step, from just one line of "Hello, World".',
lang: "ja",
srcDir: "src",
srcExclude: ["__wip"],
Expand All @@ -17,6 +18,7 @@ export default defineConfig({
],

// og
["meta", { property: "og:site_name", content: "chibivue" }],
[
"meta",
{ property: "og:url", content: "https://ubugeeei.github.io/chibivue" },
Expand All @@ -26,17 +28,39 @@ export default defineConfig({
"meta",
{
property: "og:description",
content: "Writing Vue.js: Step by Step, from just one line of \"Hello, World\".",
content:
'Writing Vue.js: Step by Step, from just one line of "Hello, World".',
},
],
[
"meta",
{
property: "og:image",
content:
"https://github.com/Ubugeeei/chibivue/blob/main/book/images/logo/logo.png?raw=true",
"https://github.com/Ubugeeei/chibivue/blob/main/book/images/logo/chibivue.png?raw=true",
},
],
["meta", { property: "og:image:alt", content: "chibivue" }],
["meta", { name: "twitter:site", content: "chibivue" }],
["meta", { name: "twitter:card", content: "summary_large_image" }],
["meta", { name: "twitter:title", content: "chibivue" }],
[
"meta",
{
name: "twitter:description",
content:
'Writing Vue.js: Step by Step, from just one line of "Hello, World".',
},
],
[
"meta",
{
name: "twitter:image",
content:
"https://github.com/Ubugeeei/chibivue/blob/main/book/images/logo/chibivue.png?raw=true",
},
],
["meta", { name: "twitter:image:alt", content: "chibivue" }],
],

locales: {
Expand Down

0 comments on commit 9002550

Please sign in to comment.