Skip to content

Instantly share code, notes, and snippets.

@kafaichoi
Created July 11, 2017 01:04
Show Gist options
  • Save kafaichoi/2f4234357f10bd794f13222e18013865 to your computer and use it in GitHub Desktop.
Save kafaichoi/2f4234357f10bd794f13222e18013865 to your computer and use it in GitHub Desktop.
Hakyll Notes
stack install hakyll
hakyll-init my-site
cd my-site
stack init  # creates stack.yaml file based on my-site.cabal
stack build
stack exec site build #create _site(HTML&asset, ready to be deployed), _cache(used by Hakyll)

stack exec site watch # preview and now go to localhost:8000


stack exec site clean #remove _site, _cahce

Change content

stack exec site build

Change site.hs

stack build
stack exec site rebuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment