Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjventurini/vuepress-plugin-zengarden-posts
Enables you to filter out the posts of your page and expose it as `this.$posts`.
https://github.com/tjventurini/vuepress-plugin-zengarden-posts
Last synced: 10 days ago
JSON representation
Enables you to filter out the posts of your page and expose it as `this.$posts`.
- Host: GitHub
- URL: https://github.com/tjventurini/vuepress-plugin-zengarden-posts
- Owner: tjventurini
- Created: 2020-05-06T15:57:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T16:10:12.000Z (over 4 years ago)
- Last Synced: 2024-10-11T20:21:00.977Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VuePress Plugin Zengarden Posts
Enables you to filter for the posts of your blog and expose it as `this.$posts` in Vue.
## Installation
```bash
npm i --save-dev vuepress-plugin-zengarden-posts
# or
yarn add -D vuepress-plugins-zengarden-posts
```## Usage
Add the following to your `config.js` or `index.js`.
```javascript
['zengarden-posts'],
```Now you can access your posts through `this.$posts` in the frontend.
## Configuration
If you have your posts somewhere else then the default `posts` directory, then you need to add some configuration.
```javascript
['zengarden-posts', {
path: '/articles/'
}]
```