diff options
-rw-r--r-- | examples/hakyll/templates/tutorials.html | 4 | ||||
-rw-r--r-- | examples/hakyll/tutorial7.markdown | 19 |
2 files changed, 21 insertions, 2 deletions
diff --git a/examples/hakyll/templates/tutorials.html b/examples/hakyll/templates/tutorials.html index 3e01bb7..fb567c0 100644 --- a/examples/hakyll/templates/tutorials.html +++ b/examples/hakyll/templates/tutorials.html @@ -1,6 +1,6 @@ -<h2>Tutorials about hakyll</h2> +<h2>Tutorials about Hakyll</h2> <p> - Here is a list of tutorials I've written about hakyll: + Here is a list of tutorials I've written about Hakyll: </p> <ul> $body diff --git a/examples/hakyll/tutorial7.markdown b/examples/hakyll/tutorial7.markdown new file mode 100644 index 0000000..0fd6d75 --- /dev/null +++ b/examples/hakyll/tutorial7.markdown @@ -0,0 +1,19 @@ +--- +title: Tips and Tricks +what: some various tips and tricks about Hakyll +--- + +## Auto-compilation + +Hakyll features a simple _auto-compilation_ mode. This is invoked by running + +~~~~~ +[jasper@alice ~]$ ./hakyll preview +Starting hakyll server on port 8000... +~~~~~ + +Now, Hakyll will recompile your site when you change files, so you can just +refresh in your browser. There is one more thing to note: this will not update +your site automatically when `hakyll.hs` changes. So if you make any changes to +the configuration file, you'll have to compile it again, and then you can enter +`preview` mode again. |