An open API service indexing awesome lists of open source software.

https://github.com/xhostcomweb/vue-wp-milligram

Vue Wordpress Starter with Milligram CSS and pages/nav
https://github.com/xhostcomweb/vue-wp-milligram

Last synced: 9 months ago
JSON representation

Vue Wordpress Starter with Milligram CSS and pages/nav

Awesome Lists containing this project

README

          

# Milligram CSS Vue JS Wordpress starter for Gridsome

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gridsome/gridsome-starter-wordpress)

http://irate-popcorn.surge.sh Example

## Install & Todo
Install Gridsome first, then clone repo and run yarn.
Fix single posts page top padding/margin etc Posts.vue
Used Milligram CSS direct in assets folder, with nav styles at bottom.

## Guide

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

```js
// 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](https://gridsome.org/plugins/@gridsome/source-wordpress).

## Included templates

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