https://github.com/serverless-operations/site
https://github.com/serverless-operations/site
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/serverless-operations/site
- Owner: serverless-operations
- Created: 2020-05-12T07:28:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T08:01:15.000Z (over 2 years ago)
- Last Synced: 2025-01-16T14:54:46.292Z (over 1 year ago)
- Language: Vue
- Homepage: https://site-mocha.now.sh
- Size: 87.4 MB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WordPress starter for Gridsome
[](https://app.netlify.com/start/deploy?repository=https://github.com/gridsome/gridsome-starter-wordpress)
## Install
`gridsome create my-gridsome-project wordpress`
## Guide
Add your WordPress URL to the plugin options.
```js
// gridsome.config.js
module.exports = {
plugins: [
{
use: '@gridsome/source-wordpress',
options: {
baseUrl: 'YOUR_WEBSITE_URL', // required
typeName: 'WordPress', // GraphQL schema name
}
}
],
// Setup template routes for any WordPress collection
templates: {
WordPressPost: '/:year/:month/:day/:slug',
WordPressTag: '/tag/:slug'
},
}
```
See all [options](https://gridsome.org/plugins/@gridsome/source-wordpress).
## Included templates
This starter includes basic templates for categories, tags and posts.