vitepress-plugin-twitter-card
v0.1.0
Published
A VitePress plugin that adds Twitter card meta tags to your site.
Downloads
38
Readme
vitepress-plugin-twitter-card
A VitePress plugin that adds Twitter card meta tags to your site.
Installation
pnpm i vitepress-plugin-twitter-card
Usage
// .vitepress/config.ts
import { defineConfig } from 'vitepress'
import { twitterCardPlugin } from 'vitepress-plugin-twitter-card'
export default defineConfig({
plugins: [
twitterCardPlugin({
site: 'vitepress', // Your Twitter username
image: 'https://vitepress.dev/vitepress-logo-large.webp', // URL to the image you want to use
}),
],
})
Visit the Twitter Card Validator to test your site.