blog.nuxt

Markdown static blog generator with Showdown.js and Pug based on Nuxt

MIT License

Stars
1

blog.nuxt

Markdown static blog generator with Showdown.js and Pug based on Nuxt

Why another static blog generator?

I find Showdown.js easy to extend with https://github.com/patarapolw/indented-filter. Pug is also easy to extend with Pug filters. I find popular static blog generators to use Showdown-it or something else, with makes it hard to extend, not to mention that there is no Pug.

Why Nuxt?

In order to be SEO-friendly and on GitHub Pages as well, as GitHub Pages doesn't allow SPA with History Router.

Installation

  • npm i -g https://github.com/patarapolw/blog.nuxt.git
  • Create config.json, filled with settings, as will be describe in the example
  • blog.nuxt to run a development server. blog.nuxt -b to build for GitHub Pages.

Publishing to GitHub

Development mode

npm init -y
git init
git submodule add https://github.com/patarapolw/blog.nuxt.git
npm i ./blog.nuxt

Creating add new theme

  • Add these to .gitignore
# Blog.nuxt
assets/build/
static/build/
  • Edit nuxt.config.js

Example