fast and simple static site generator
$ npm i -D @iolo/fastpress
$ npx fastpress build
$ npx fastpress watch
$ npx serve out/
see serve
$ npx gh-pages -d out/
see gh-pages
module.exports = {
baseDir: '.', // absolute or relative to config file
outDir: 'out', // absolute or relative to baseDir
staticDir: 'static', // absolute or relative to baseDir
contentDir: 'content', // absolute or relative to baseDir
layoutDir: 'layout', // absolute or relative to baseDir
site: {
url: 'https://iolo.github.io',
title: 'Iolo\'s Personal Homepage',
description: 'Ho eyo he hum!',
image: '/banner.png',
},
}
+ content/
- index.md
+ about/
- index.md
+ posts/
- index.md
+ slug
- index.md
+ ...
+ static/
- favicon.ico
- style.css
- script.js
- logo.png
- ...
+ layout/
- default.ejs
- page.ejs
- post.ejs
- posts.ejs
- tags.ejs
- ...
…
see ejs
May the SOURCE be with you…