Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patarapolw/blog.nuxt
Markdown static blog generator with Showdown.js and Pug based on Nuxt
https://github.com/patarapolw/blog.nuxt
nuxt pug showdown-js static-site-generator
Last synced: about 1 month ago
JSON representation
Markdown static blog generator with Showdown.js and Pug based on Nuxt
- Host: GitHub
- URL: https://github.com/patarapolw/blog.nuxt
- Owner: patarapolw
- License: mit
- Created: 2019-11-17T17:17:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:18:26.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T15:22:31.925Z (7 months ago)
- Topics: nuxt, pug, showdown-js, static-site-generator
- Language: Vue
- Size: 1.08 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 . 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
- You might use
- `gh-pages -d dist -t true`## 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
-
- I also used a different theme from default, which will probably be more updated. You can get the idea here.
-