Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/limdongjin/vuepress-plugin-simple-seo

npm package for vuepress, SEO
https://github.com/limdongjin/vuepress-plugin-simple-seo

javascript npm-package seo vuejs vuepress vuepress-plugin

Last synced: about 2 months ago
JSON representation

npm package for vuepress, SEO

Awesome Lists containing this project

README

        

# vuepress-plugin-simple-seo

> Simple Seo plugin for Vuepress 1.x

[![npm version](https://img.shields.io/npm/v/vuepress-plugin-feed.svg?style=flat-square)](https://www.npmjs.com/package/@limdongjin/vuepress-plugin-simple-seo)
[![MIT License](https://img.shields.io/npm/l/express.svg?style=flat-square)](http://opensource.org/licenses/MIT)

## Install

```
yarn add -D @limdongjin/vuepress-plugin-simple-seo
```

## Usage

```js
module.exports = {
plugins: ['@limdongjin/vuepress-plugin-simple-seo', {
// write options. ( all options are optional )
}]
}
```

## Example Usage1

```js
// config.js
module.exports = {
plugins: ['@limdongjin/vuepress-plugin-simple-seo', {
default_image: '/images/main-image-min.jpg',
root_url: 'https://limdongjin.github.io',
default_site_name: 'limdongjin TIL'
}]
}
```

```md
---
description: It is Simple Seo Plugin for Vuepress
image: '/post-specific-image.png'
twitter_creator: twituser
twitter_site: twituser
---

# It is automatic title.

hello world

## gogo
```

```html


```

## Options

- recommend option are also "optional" option.
- Type: `string`

### root_url (recommend)

- Default: Empty String
- Example: `https://limdongjin.github.io`

```html

```
### default_site_name (recommend)

- Default: `undefined`

```html

```

### default_image (recommend)

- Default: `undefined`
- Example, `/image.png`

```html

```

### default_image_type

- Default: `undefined`

```html

```

### default_image_width

- Default: `undefined`

```html

```

### default_image_height

- Default: `undefined`

```html

```

### default_image_alt

- Default: `undefined`

```html

```

### default_twitter_creator

- Default: `undefined`

```html

```

### default_twitter_site

- Default: `undefined`

```html

```

### default_twitter_card

- Default: `summary`

```html

```

### default_og_type

- Default: `article`

```html

```

## Frontmatter

- each page can override default option values.
- if you want minimal setting, recommend just set description, or image.

### title

if you are not write frontmatter title, create meta title tag from $page.title.

```html

```

### description ( recommend )

```html

```

### image ( recommend )

```html



```

### image_type

```html

```

### image_width

```html

```

### image_height

```html

```

### image_alt

```html

```

### twitter_creator

- Example: twituser

```html

```

### twitter_site

- Example: twituser

```html

```

### twitter_card

```html

```

### og_type

```html

```

### site_name

```html

```

## License

MIT © [limdongjin](https://github.com/limdongjin)