πŸ‘©β€πŸ’» WordPress starter for Gridsome
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src rename graphql to page-query Sep 27, 2018
.gitignore update gridsome apis Sep 17, 2018
README.md chore: Install instruction fix Nov 14, 2018
gridsome.config.js chore: Add default settings to config Nov 14, 2018
package.json update to gridsome@0.3.0 Nov 11, 2018

README.md

WordPress starter for Gridsome

Install

gridsome create my-gridsome-project wordpress

Guide

Add your WordPress URL to the plugin options.

// gridsome.config.js

module.exports = {
  plugins: [
    {
      use: '@gridsome/source-wordpress',
      options: {
        baseUrl: 'YOUR_WEBSITE_URL', // required
        typeName: 'WordPress', // GraphQL schema name (Optional)
        perPage: 100, // How many posts to load from server per request (Optional)
        concurrent: 10, // How many requests to run simultaneously (Optional)
        routes: {
          post: '/:year/:month/:day/:slug', //adds route for "post" post type (Optional)
          post_tag: '/tag/:slug' // adds route for "post_tag" post type (Optional)
        }
      }
    }
  ]
}

Included templates

This starter includes basic templates for categories, tags and posts.