On, Hekyll! On, Jekyll! On Huginn and Muninn!

dark overlord of data

Huginn Static Page Generator


I started using Jekyll, but I don't enjoy programming in Ruby. So I created Huginn with Coffee-Script. Huginn uses liquid.coffee templates, and has the same folder structures and configuration.


Install


$ sudo npm install huginn -g

Create a new application


$ huginn create <appname>
$ cd <appname>
$ huginn build
$ huginn serve

Serving Generated Pages


Local

Run huginn locally for testing purposes

$ huginn create <appname>
$ huginn build --dev
$ huginn serve --dev

Server

Huginn was designed to create github pages. The Huginn project github pages were generated with Huginn. Huginn works on Heroku, too. Run npm install in the project folder. An embedded copy of huginn will serve the generated static pages.

$ huginn create <appname>
$ cd <appname>
$ npm install
$ huginn build
$ foreman start
$ git push heroku master

Usage


Usage:
    huginn create PATH

    cd PATH
    huginn build [--drafts]
    huginn serve

    Options:
    -b  [--branch]    # branch name subfolder, defaults to master
    -d  [--drafts]    # publish _drafts folder
    -h  [--help]      # display this message
    -p  [--port]      # port to use
    -v  [--version]   # display version

    --dev             # use config-dev.yml