A mini static site generator powered by Node.js
npm install minigen
minigen [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
build <site-directory> [output-directory] build site from layout and templates
watch <site-directory> [output-directory] watch for changes and rebuild
serve <directory> [port] serve static site from directory
help [command] display help for command
Example
minigen build my-site
site
├── layouts
│ └── post.hbs
├── pages
│ ├── first_post.md
│ └── second_post.md
└── static
├── js
│ └── script.js
└── css
└── styles.css
This folder contains the layout templates wrtting using .hbs
.
See example/layouts/
as an example
This folder contains the pages to be generated. A page is written using github-flavoured markdown and has a reference of the layout to use when generating the page.
See example/pages/
as an example
This folder contains the static assets to be used by the site. The folder is copied to the final site, so any directory structure is preserved as is.
See example/static/
as an example