Merge branch 'add_opengraph_tags' into 'development'

Add OpenGraph tags

See merge request GeneralProtocols/xo/stack!38
This commit is contained in:
Jim Hamill
2025-03-11 01:05:25 +00:00
2 changed files with 31 additions and 3 deletions
+31 -3
View File
@@ -65,9 +65,39 @@ function convertNavToPascalCase(nav: Array<any>) {
// https://vitepress.dev/reference/site-config
export default withMermaid({
outDir: '../dist',
title: 'Stack',
title: 'XO Stack',
description:
'XO Stack: Building smart applications on the Bitcoin Cash Network',
head: [
// Favicon.
['link', { rel: 'icon', href: '/favicon.png' }],
// Basic OpenGraph tags
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:title', content: 'XO Stack' }],
[
'meta',
{
property: 'og:description',
content:
'XO Stack: Building smart applications on the Bitcoin Cash Network',
},
],
[
'meta',
{
property: 'og:image',
content: 'https://stack.xo.cash/stack-opengraph.jpg',
},
],
['meta', { property: 'og:url', content: 'https://stack.xo.cash/' }],
// Optional additional tags
['meta', { property: 'og:site_name', content: 'XO Stack' }],
// Twitter Card tags (optional but recommended)
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'twitter:site', content: '@yourtwitterhandle' }],
],
themeConfig: {
// Set the logo
logo: {
@@ -213,8 +243,6 @@ export default withMermaid({
},
},
head: [['link', { rel: 'icon', href: '/favicon.png' }]],
// Set the dev and build targets to "esnext"
// NOTE: We do this so that we can support top-level-await.
vite: {
Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB