A static blog built with Nuxt.js, Tailwindcss and using Cockpit as a headless CMS.
Branch: master
Clone or download
Latest commit b3f7eb1 Feb 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Tidying up a few files Nov 12, 2018
components Tidying up a few files Nov 12, 2018
layouts Tidying up a few files Nov 12, 2018
middleware Tidying up a few files Nov 12, 2018
pages Updated NPM packages Feb 12, 2019
plugins Tidying up a few files Nov 12, 2018
static Made post pagination more clear Feb 12, 2019
store Tidying up a few files Nov 12, 2018
.editorconfig
.gitignore Tidying up a few files Nov 12, 2018
README.md Updated readme Feb 12, 2019
create-env.js Added pagination for blog posts Nov 12, 2018
nuxt.config.js Made post pagination more clear Feb 12, 2019
package-lock.json
package.json Updated NPM packages Feb 12, 2019
postcss.config.js Initial Commit Jun 21, 2018
tailwind.js Tidying up a few files Nov 12, 2018

README.md

A Static Blog Built with Nuxt.js, Tailwindcss and using Cockpit as a Headless CMS

An example of a statically generated blog using Nuxt.js. From the blog post - Building a Static Blog with Nuxt.js and Cockpit Headless CMS - Part 1: Setup

Build Setup

# Rename .env.example to .env
$ mv .env.example .env

# Edit .env and enter your Cockpit API details

# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev

# generate the static blog
$ npm run generate

For detailed explanation on how things work, checkout the Nuxt.js docs.