Skip to content

Commit 1fca1e2

Browse files
committed
fixup! feat: add unfurl image + metadata
1 parent e7bc540 commit 1fca1e2

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

main/.vitepress/config.mjs

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,32 @@ import { defineConfig } from 'vitepress'
22
import { nav } from './themeConfig/nav.js';
33
import { rewrites } from './themeConfig/rewrites.js';
44

5+
const SITE_TITLE = 'Agoric Documentation';
6+
const SITE_DESCRIPTION =
7+
'The blockchain framework tailored for JavaScript developers.';
8+
59
export default defineConfig({
610
/* --- FOR DEPLOYMENT TO GITHUB PAGES--- */
711
base: '/', // The base URL the site will be deployed at.
812
outDir: '../dist',
913
/* --- HOME PAGE --- */
10-
title: 'Agoric Documentation', // title for the site. prefix for all page titles and displayed in the navbar
11-
description: 'The blockchain framework tailored for JavaScript developers.', // desc for the site; rendered as a <meta> tag in the page HTML
14+
title: SITE_TITLE, // title for the site. prefix for all page titles and displayed in the navbar
15+
description: SITE_DESCRIPTION, // desc for the site; rendered as a <meta> tag in the page HTML
1216
// Extra tags to inject into the page HTML <head>. You can specify each tag in the form of [tagName, { attrName: attrValue }, innerHTML?].
1317
head: [
1418
[
1519
'meta',
16-
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
20+
{ property: 'viewport', content: 'width=device-width, initial-scale=1' },
21+
],
22+
['meta', { property: 'og:image', content: '/agoric-og.png' }],
23+
['meta', { property: 'og:type', content: 'website' }],
24+
['meta', { property: 'og:title', content: SITE_TITLE }],
25+
['meta', { property: 'og:site_name', content: SITE_TITLE }],
26+
['meta', { property: 'og:url', content: 'https://docs.agoric.com' }],
27+
[
28+
'meta',
29+
{ property: 'twitter:summary_large_image', content: '/agoric-og.png' },
1730
],
18-
['meta', { name: 'og:image', content: '/agoric-og.png' }],
19-
['meta', { name: 'og:type', content: 'website' }],
20-
['meta', { name: 'og:title', content: 'Agoric Documentation' }],
21-
['meta', { name: 'og:site_name', content: 'Agoric Documentation' }],
22-
['meta', { name: 'og:url', content: 'https://docs.agoric.com' }],
23-
['meta', { name: 'twitter:card', content: '/agoric-og.png' }],
2431
['link', { rel: 'icon', href: '/favicon-full.ico' }],
2532
[
2633
'style',

0 commit comments

Comments
 (0)