Socket
Socket
Sign inDemoInstall

vuepress-plugin-open-graph

Package Overview
Dependencies
119
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vuepress-plugin-open-graph

VuePress plugin for generating open graph meta tags


Version published
Weekly downloads
13
increased by85.71%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.8.0 (2024-01-28)

Features

  • update vuepress to v2.0.0-rc.2 (62b0f09)

Readme

Source

vuepress-plugin-open-graph

VuePress

Version Downloads

VuePress v2 plugin for generating open graph meta tags to improve SEO.

Installation

npm install --save vuepress-plugin-open-graph

Usage

Add plugin to your VuePress config:

import { openGraphPlugin } from 'vuepress-plugin-open-graph'

export default {
  plugins: [
    openGraphPlugin({
      /* options */
    }),
  ],
}

That's all. Just use frontmatter options in your Markdown files:

---
title: Post title
description: Post description
date: Post publish date
image: URL to post preview
---

Options

host

  • Type: string

  • Required: true

  • Details:

    The domain name where the current site is deployed, the plugin needs this option to work.

defaultImage

  • Type: string

  • Required: false

  • Details:

    Link to default open graph image. This image will be used unless otherwise specified.

twitterCard

  • Type: 'summary' | 'summary_large_image'

  • Required: false

  • Details:

    Twitter card type for a beautiful visual display of the tweet with post link. Read more.

twitterSite

  • Type: string

  • Required: false

  • Details:

    Twitter username of your website.

Contribution

Pull requests are welcome.

Keywords

FAQs

Last updated on 28 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc