on master help sign in
Site updates
commit82a725bd8f59453cacf3ff5e45b3a7d2903dbb2f authorJasper Van der Jeugt <m@jaspervdj.be> dateSun 13 Jan 2013, 21:46 (14 years ago) parent282f0e2
5 files changed+29−201
web/changelog.markdown−150 web/css/default.css+13−7 web/examples.markdown−9 web/templates/default.html+6−3 web/tutorials/faq.markdown+10−32
web/changelog.markdowndeleted−150
@@ -1,150 +0,0 @@
1−---
2−title: Changelog
3−---
4−
5−## Hakyll 3.2.2
6−
7−- Add `applyTemplateWith`, `applyTemplateCompilerWith` to allows missing keys
8−
9−## Hakyll 3.2.1
10−
11−- Add `Pandoc.Biblio` module for reference handling
12−
13−## Hakyll 3.2
14−
15−- Switch to type-safe identifiers: e.g. `Identifier` becomes
16− `Identifier (Page String)`
17−
18−## Hakyll 3.1.1
19−
20−- Allow `group` in rules DSL
21−
22−## Hakyll 3.1
23−
24−- New `match` function in rules DSL
25−- More expressive `Pattern`s
26−
27−## Hakyll 3
28−
29−- Complete rewrite
30−
31−## Hakyll 2.4.1
32−
33−- Add a number of utility functions
34−- Fix bug in `enableIndexUrl` mode
35−
36−## Hakyll 2.4
37−
38−- Arrow based interface to pandoc
39−- Easier custom fields
40−
41−## Hakyll 2.3
42−
43−- Ability to choose between preview modes.
44−- Simple static configuration available.
45−- Support hamlet templates.
46−
47−## Hakyll 2.2.2
48−
49−- Cabal dependency fixes.
50−
51−## Hakyll 2.2.1
52−
53−- Allow custom time locale for `renderDate`.
54−- Render RSS feeds with `CDATA` sections.
55−
56−## Hakyll 2.2
57−
58−- Allow markup languages in templates.
59−
60−## Hakyll 2.1.1
61−
62−- Fix issues in autocompilation/preview mode.
63−
64−## Hakyll 2.1
65−
66−May 21, 2010
67−
68−- Expose pandoc options to HakyllConfiguration.
69−- Allow dashes in pages.
70−- Some typo's and bugs fixed.
71−
72−## Hakyll 2.0
73−
74−March 31, 2010
75−
76−- Rewrite of the API to a clean, Arrow based API.
77−- Added built-in support for RSS and Atom.
78−- Added more documentation.
79−- Added pagination.
80−- Many bugfixes.
81−
82−## Hakyll 1.4
83−
84−February 17, 2010
85−
86−- Added an autocompilation feature.
87−- Support for index URL's (`enableIndexUrl`).
88−
89−## Hakyll 1.3
90−
91−January 30, 2010
92−
93−- Added categories in addition to tags.
94−- Added `createListing` and `createListingWith` function for a more high-level
95− way to create listings.
96−
97−## Hakyll 1.2
98−
99−January 27, 2010
100−
101−- `Data.Binary` is now used for serialization.
102−- Rewrite of the caching system.
103−- Specialized data structure for templates.
104−- Caching of pages and templates.
105−
106−## Hakyll 1.1
107−
108−January 19, 2010
109−
110−- Switched to a custom `Hakyll` monad stack instead of the `IO` monad.
111−- Page sections.
112−- Combining renderables.
113−- `renderAndConcat` can now use multiple templates.
114−
115−## Hakyll 1.0
116−
117−January 14, 2009
118−
119−- First stable release.
120−- Custom templating system.
121−- Added `$root` key for relative URL's.
122−
123−## Hakyll 0.4
124−
125−January 8, 2010
126−
127−- Added examples.
128−- Added `ContextManipulation` type.
129−
130−## Hakyll 0.3
131−
132−December 28, 2009
133−
134−- Added a general `directory` function.
135−- Added CSS compression.
136−- Added tag support.
137−- Added a simple HTTP server for testing purposes.
138−
139−## Hakyll 0.2
140−
141−December 16, 2010
142−
143−- Abstracted `Renderable` type.
144−- Added simple caching and dependency checking.
145−
146−## Hakyll 0.1
147−
148−December 5, 2009
149−
150−- Initial release.
web/css/default.css+13−7
@@ -13,16 +13,21 @@ body {
1313}
1414
1515div#header {
16+ font-size: 28px;
17+ font-weight: bold;
1618 height: 32px;
17− margin: 20px 0px 20px 60px;
19+ line-height: 32px;
20+ margin: 24px 0px 12px 128px;
1821 text-transform: uppercase;
19− font-weight: bold;
20− font-size: 28px;
2122}
2223
2324div#header img {
24− display: inline;
25− margin: 0px 0px 0px 0px;
25+ float: left;
26+ margin: 0px 30px 0px 0px;
27+}
28+
29+div#header a {
30+ text-decoration: none;
2631}
2732
2833div#main {
@@ -77,12 +82,12 @@ a {
7782
7883h1 {
7984 font-size: 20px;
80− margin: 24px 0px 16px 0px;
85+ margin: 12px 0px 12px 0px;
8186}
8287
8388h2 {
8489 font-size: 18px;
85− margin: 24px 0px 16px 0px;
90+ margin: 12px 0px 12px 0px;
8691}
8792
8893h3 {
@@ -91,6 +96,7 @@ h3 {
9196
9297h1, h2, h3 {
9398 text-transform: uppercase;
99+ font-weight: bold;
94100}
95101
96102h1 a, h2 a, h3 a {
web/examples.markdown−9
@@ -2,15 +2,6 @@
22title: Examples
33---
44
5−# Simple examples
6−
7−A number of simple examples are available in the GitHub repository. They can be
8−found [here](https://github.com/jaspervdj/hakyll-examples). The README located
9−in that directory explains which example does what. You can fetch the entire
10−directory using
11−
12− git clone git://github.com/jaspervdj/hakyll-examples.git
13−
145# People using Hakyll
156
167A lot of sites running Hakyll also publish the source code. This is a very
web/templates/default.html+6−3
@@ -15,10 +15,14 @@
1515 <meta name="description" content="Hakyll - A Static Site Generator in Haskell."/>
1616 </head>
1717 <body>
18+ <!-- Fork me on Github -->
19+ <a href="https://github.com/jaspervdj/hakyll"><img style="position: absolute; top: 0; right: 0; border: 0; margin: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
1820 <div id="main">
1921 <div id="header">
20− <img src="/images/lambda.png" alt="lambda" />
21− Hakyll - $title$
22+ <a href="/">
23+ <img src="/images/lambda.png" alt="lambda" />
24+ Hakyll
25+ </a>
2226 </div>
2327 <!-- Sidebar. -->
2428 <div id="sidebar">
@@ -29,7 +33,6 @@
2933 <a href="/about.html">about</a>
3034 <a href="/tutorials/faq.html">faq</a>
3135 <a href="/examples.html">examples</a>
32− <a href="/changelog.html">changelog</a></p>
3336
3437 <!-- Flattr button -->
3538 <h1>Donate</h1>
web/tutorials/faq.markdown+10−32
@@ -10,38 +10,19 @@ author: Jasper Van der Jeugt
1010 Saw: `Main'
1111 Expected: `Hakyll'
1212
13−Is an error encountered on Mac OS when `hakyll.hs` is located on a
14−case-insensitive filesystem. A workaround is to rename it to something that
15−isn't the name of the module, for example, `site.hs`.
13+Is an error encountered on Mac OS when your configuration is named `hakyll.hs`
14+and located on a case-insensitive filesystem. A workaround is to rename it to
15+something that isn't the name of the module, for example, `site.hs`.
1616
17−## `pageCompiler`/Hakyll/Pandoc eats my HTML!
17+## pandocCompiler/Hakyll/Pandoc eats my HTML!
1818
1919Sometimes, it can seem that HTML pages are stripped of some arbitrary tags, e.g.
20−`<div>`'s. The issue here is that, when using the default `pageCompiler`, your
20+`<div>`'s. The issue here is that, when using the default `pandocCompiler`, your
2121page passes through Pandoc. Pandoc unfortunately strips away this information,
2222giving you the "wrong" HTML.
2323
24−The solution is not to use `pageCompiler` -- it is very common to write custom
25−page processing compiler. The definition of `pageCompiler` is, put simply:
26−
27−~~~~~{.haskell}
28−pageCompiler =
29− readPageCompiler >>>
30− addDefaultFields >>> -- Sets some things like $path$
31− arr applySelf >>> -- Used to fill in $var$s in the page
32− pageRenderPandoc -- Pass through pandoc
33−~~~~~
34−
35−You can add your own version in your `hakyll.hs` file:
36−
37−~~~~~{.haskell}
38−myPageCompiler =
39− readPageCompiler >>>
40− addDefaultFields >>> -- Sets some things like $path$
41− arr applySelf -- Used to fill in $var$s in the page
42−~~~~~
43−
44−And using this instead of `pageCompiler` should solve the issue.
24+The solution is not to use `pandocCompiler`, but something simpler like
25+`getResourceBody`. This way, your HTML is not touched.
4526
4627## Does Hakyll support syntax highlighting?
4728
@@ -54,12 +35,9 @@ Pandoc syntax CSS file][syntax-css].
5435
5536## When should I rebuild and when should I build?
5637
57−If you execute a `./hakyll build`, Hakyll will build your site incrementally.
58−This means it will be very fast, but it will not pick up _all_ changes.
59−
60−- In case you edited `hakyll.hs`, you first want to compile it again.
61−- It is generally recommended to do a `./hakyll rebuild` before you deploy your
62− site.
38+If you execute a `./site build`, Hakyll will build your site incrementally.
39+However, we can not detect if you edited `site.hs`. In this case, you first want
40+to compile it again `site.hs` again, and then do a `./site rebuild`.
6341
6442After rebuilding your site, all files will look as "modified" to the filesystem.
6543This means that when you upload your site, it will usually transfer all files --