Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 906 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 906 Bytes

WordPress starter for Gridsome

Deploy to Netlify

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
      }
    }
  ],
  // Setup template routes for any WordPress collection
  templates: {
    WordPressPost: '/:year/:month/:day/:slug',
    WordPressTag: '/tag/:slug'
  },
}

See all options.

Included templates

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