Skip to content

Instantly share code, notes, and snippets.

@chadluo
Created March 20, 2016 13:15
Show Gist options
  • Select an option

  • Save chadluo/ca6b37adab90296dcb7c to your computer and use it in GitHub Desktop.

Select an option

Save chadluo/ca6b37adab90296dcb7c to your computer and use it in GitHub Desktop.
Hakyll short guide

How it works

Build a binary and generate static files from this binary.

Install

  1. stack new mysite hakyll-template
  2. cd mysite
  3. init as git repo
  4. stack build which could take long enough time for a laundry
  5. ln -s .stack-work/install/x86_64-osx/lts-<version>/<ghc version>/bin/mysite site where site = the binary we want.
  6. ./site to check all the commands.

Write

(probably similar to Jekyll, manually add files under /post)

deploy

(to be found)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment