Skip to content

xhostcomweb/wp-gridsome-starter

Repository files navigation

Vue JS Wordpress starter for Gridsome

Deploy to Netlify

Netlify Status

eloquent-dijkstra-b86505.netlify.com Example

Install & Todo

Install Gridsome first, then clone repo and run yarn.

Used Bulma CSS, and custom nav, but can swap out styles for own. This uses the basics of the Krypto Bulma theme Just change nav and page templates to yours, header and footer in components folder. 3 pages made, Home, About, and Blog/News See main.js for imports, put extra plugins in index.js. DELETE index.html if not required (usually for cdns/font awsome etc)

Guide

Add your WordPress URL to the plugin options. Already done here, change to required field in gridsome.config and netlify.toml

// gridsome.config.js

module.exports = {
  plugins: [
    {
      use: '@gridsome/source-wordpress',
      options: {
        baseUrl: 'YOUR_WEBSITE_URL', // required
        typeName: 'WordPress', // GraphQL schema name (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)
        }
      }
    }
  ]
}

See all options.

Included templates

This starter includes basic templates for categories, tags and posts, Home, About and News page.

About

Vue JS Wordpress Starter with extra bits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published