0.1.0 • Published 11 months ago

vitepress-plugin-twitter-card v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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.

0.1.0

11 months ago