diff options
| author | ST-DDT <[email protected]> | 2024-11-03 09:01:39 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-03 08:01:39 +0000 |
| commit | cb976821fbfe5cde675b835e40d37ace37647bd3 (patch) | |
| tree | 390b3d4d69f396c181a5d081840a94245f8462ba /docs | |
| parent | 290e7c9660ff059920a2bff922f06d7bd7cf53e8 (diff) | |
| download | faker-cb976821fbfe5cde675b835e40d37ace37647bd3.tar.xz faker-cb976821fbfe5cde675b835e40d37ace37647bd3.zip | |
docs: add required twitter meta tags (#3232)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/.vitepress/config.ts | 56 |
1 files changed, 11 insertions, 45 deletions
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 2cb93014..746803ad 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -109,53 +109,19 @@ const config: UserConfig<DefaultTheme.Config> = { head: [ ['link', { rel: 'icon', href: '/logo.svg' }], ['meta', { name: 'theme-color', content: '#40af7c' }], - [ - 'meta', - { - name: 'og:description', - content: description, - }, - ], - [ - 'meta', - { - name: 'twitter:description', - content: description, - }, - ], - [ - 'meta', - { - name: 'og:image', - content: image, - }, - ], - [ - 'meta', - { - name: 'twitter:image', - content: image, - }, - ], - [ - 'meta', - { - name: 'twitter:card', - content: 'summary_large_image', - }, - ], - [ - 'link', - { - rel: 'me', - href: 'https://fosstodon.org/@faker_js', - }, - ], + ['meta', { name: 'og:title', content: 'FakerJS' }], + ['meta', { name: 'og:description', content: description }], + ['meta', { name: 'og:image', content: image }], + ['meta', { name: 'twitter:card', content: 'summary_large_image' }], + ['meta', { name: 'twitter:title', content: 'FakerJS' }], + ['meta', { name: 'twitter:description', content: description }], + ['meta', { name: 'twitter:site', content: '@faker_js' }], + ['meta', { name: 'twitter:image', content: image }], + ['meta', { name: 'twitter:image:alt', content: 'The FakerJS logo' }], + ['link', { rel: 'me', href: 'https://fosstodon.org/@faker_js' }], [ 'script', - { - id: 'browser-console-faker', - }, + { id: 'browser-console-faker' }, ` const logStyle = 'background: rgba(16, 183, 127, 0.14); color: rgba(255, 255, 245, 0.86); padding: 0.5rem; display: inline-block;'; console.log(\`%cIf you would like to test Faker in the browser console, you can do so using 'await enableFaker()'. |
