vuepress-plugin-open-graph
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({
}),
],
}
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
defaultImage
Contribution
Pull requests are welcome.