on master help sign in
Some work on the hakyll website.
commitdbb9a0e1946fab03714ce52e605d6c1a5322aad6 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateTue 5 Jan 2010, 10:58 (17 years ago) parent222cc51
5 files changed+48−1
examples/hakyll/about.markdown+5 examples/hakyll/hakyll.hs+3 examples/hakyll/philosophy.markdown+28 examples/hakyll/reference.markdown+10 examples/hakyll/templates/default.html+2−1
examples/hakyll/about.markdown+5
@@ -1,6 +1,7 @@
11---
22title: About
33---
4+
45## Code
56
67The code for Hakyll is freely available on
@@ -21,3 +22,7 @@ following awesome projects:
2122Hakyll is available under a BSD license. Note, however, that pandoc is
2223released under a GPL license. Since you'll probably use Hakyll with pandoc,
2324you will have to license your code under a GPL-compatible license.
25+
26+## Authors
27+
28+Hakyll was written by [Jasper Van der Jeugt](http://jaspervdj.be).
examples/hakyll/hakyll.hs+3
@@ -12,6 +12,7 @@ main = hakyll $ do
1212 directory css "css"
1313 directory static "images"
1414 directory static "examples"
15+ directory static "reference"
1516
1617 tutorials <- liftM (sort . filter (=~ "tutorial[0-9]*.markdown")) $ getRecursiveContents "."
1718 let tutorialList = renderAndConcat "templates/tutorialitem.html"
@@ -25,6 +26,8 @@ main = hakyll $ do
2526
2627 mapM_ render' $ [ "about.markdown"
2728 , "index.markdown"
29+ , "philosophy.markdown"
30+ , "reference.markdown"
2831 ] ++ tutorials
2932
3033 where render' = renderChain ["templates/default.html"] . createPagePath
examples/hakyll/philosophy.markdownnew file+28
@@ -0,0 +1,28 @@
1+---
2+title: Philosophy
3+---
4+
5+## Small-to-medium sites
6+
7+Hakyll was written to be used for small-to-medium sites. You can do some
8+advanced things with it, but don't use it to build a big online shop.
9+
10+## Hakyll.hs
11+
12+It should be possible to put all configuration in one file, so data and
13+configuration can be strictly separated. In addition, we think this file should
14+never exceed a 100 lines of code.
15+
16+## High-level
17+
18+Hakyll tries to provide as many high-level functions as possible for common
19+tasks, while the lower-level functions should also be accessible. If you think
20+you're writing something that can be used for many sites, please send a patch,
21+our your `hakyll.hs`, and we will see what we can do.
22+
23+## Well-documented
24+
25+A key to being easy-to-use is documentation. That's why we try to provide as
26+many working examples as possible. If you ever create a site using hakyll,
27+please consider open-sourcing it, as people might be able to learn from your
28+code.
examples/hakyll/reference.markdownnew file+10
@@ -0,0 +1,10 @@
1+---
2+title: Reference
3+---
4+
5+## Reference
6+
7+We keep a copy of the reference of the latest stable version here. This
8+reference is automatically generated by
9+[Haddock](http://www.haskell.org/haddock/). You can
10+[find it here](reference/index.html).
examples/hakyll/templates/default.html+2−1
@@ -24,8 +24,10 @@
2424 <h2>Navigation</h2>
2525 <div id="navigation">
2626 <a href="index.html">home</a>
27+ <a href="philosophy.html">philosophy</a>
2728 <a href="about.html">about</a>
2829 <a href="tutorials.html">tutorials</a>
30+ <a href="reference.html">reference</a>
2931 </div>
3032 </div>
3133
@@ -35,7 +37,6 @@
3537
3638 <div id="footer">
3739 Site proudly generated by <a href="http://github.com/jaspervdj/hakyll">hakyll</a>.
38− Hakyll and this site were written by <a href="http://jaspervdj.be/">Jasper Van der Jeugt</a>.
3940 </div>
4041 </div>
4142 </body>