From 2ed3df4811d42ae17111deddd079941d7b2932f4 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sun, 29 May 2011 15:34:37 +0200 Subject: Some tutorial writing --- examples/hakyll/images/brochure-files.png | Bin 0 -> 80285 bytes examples/hakyll/tutorial.markdown | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 examples/hakyll/images/brochure-files.png (limited to 'examples') diff --git a/examples/hakyll/images/brochure-files.png b/examples/hakyll/images/brochure-files.png new file mode 100644 index 0000000..454572c Binary files /dev/null and b/examples/hakyll/images/brochure-files.png differ diff --git a/examples/hakyll/tutorial.markdown b/examples/hakyll/tutorial.markdown index 838edf5..243dbaf 100644 --- a/examples/hakyll/tutorial.markdown +++ b/examples/hakyll/tutorial.markdown @@ -38,6 +38,29 @@ Features include: A simple brochure site ---------------------- +We're going to discuss a small brochure site to start with. You can find all +code and files necessary to build this site [right here](/examples/brochure.zip) +-- feel free to look to them as we go trough the tutorial. There's a number of +files we will use: + + about.rst A simple page written in RST format + code.lhs Another page with some code (which can be highlighted) + css Directory for CSS files + |- default.css The main CSS file + \- syntax.css CSS file for code syntax highlighting + hakyll.hs Our code to generate the site + index.markdown A simple page in markdown format + templates Directory for templates + \- default.html The main template for the site + +By default, hakyll will compile everything to the `_site` directory. We can try +this like this: + + [jasper@phoenix] ghc --make hakyll.hs + [jasper@phoenix] ./hakyll build + +![Brochure files](/images/brochure-files.png) + ### The two layers Hakyll consists of two important layers: -- cgit v1.2.3