diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/examples.markdown | 22 | ||||
-rw-r--r-- | web/releases.markdown | 27 | ||||
-rw-r--r-- | web/tutorials/01-installation.markdown | 2 | ||||
-rw-r--r-- | web/tutorials/faq.markdown | 3 | ||||
-rw-r--r-- | web/tutorials/using-clay-with-hakyll.markdown | 17 |
5 files changed, 66 insertions, 5 deletions
diff --git a/web/examples.markdown b/web/examples.markdown index 113bd25..e13670e 100644 --- a/web/examples.markdown +++ b/web/examples.markdown @@ -77,6 +77,26 @@ this list. This list has no particular ordering. [source](http://hub.darcs.net/co-dan/website) - <http://www.gwern.net/>, [source](https://github.com/gwern/gwern.net) +- <http://www.rohanjain.in/>, + [source](https://github.com/crodjer/rohanjain.in) +- <http://www.corentindupont.info/>, + [source](https://github.com/cdupont/CorentinDupont-WebPage) +- <http://jelv.is>, + [source](https://github.com/TikhonJelvis/website) +- <https://secure.plaimi.net/>, + [source](https://github.com/plaimi/www) +- <http://duplode.github.io/>, + [source](https://github.com/duplode/duplode.github.io/tree/sources) +- <http://maseek.codes>, + [source](https://github.com/maseek/maseek-codes) +- <http://listx.github.io>, + [source](https://github.com/listx/listx_blog) +- <http://kyle.marek-spartz.org>, + [source](https://github.com/zeckalpha/kyle.marek-spartz.org) +- <http://ladatura-corsets.com/>, + [source](https://github.com/dsferruzza/datura-corsets) +- <http://reichertbrothers.com/>, + [source](https://github.com/rbros/reichertbrothers.com) ## Hakyll 3.X @@ -106,8 +126,6 @@ this list. This list has no particular ordering. [source](http://gitorious.org/shakthimaan-blog) - <http://www.alfredodinapoli.com/>, [source](https://github.com/CharlesStain/alfredodinapoli.com) -- <http://www.rohanjain.in/>, - [source](https://github.com/crodjer/rohanjain.in) - <http://datahackermd.com>, [source](http://github.com/akshayjshah/datahackermd) - <http://michaelxavier.net>, diff --git a/web/releases.markdown b/web/releases.markdown index 7277ea9..cc704f1 100644 --- a/web/releases.markdown +++ b/web/releases.markdown @@ -4,6 +4,33 @@ title: Releases # Releases +## Hakyll 4.5.3.0 + +- Bump Pandoc to 1.12.4 to include the org-mode reader. + +## Hakyll 4.5.2.0 + +- Fix rebuilding everything issue with latest directory (contribution by Jorge + Israel Peña) +- Fix issue with `toSiteRoot` (contribution by Izzy Cecil) +- Fix issue with tag dependencies, slightly improve caching + +## Hakyll 4.5.0.0 + +- Fix issue with syntax highlighting and line numbers (contribution by Adelbert + Chang) +- Improve documentation for `Context` (contribution by Daniil Frumin) +- Added `IsString` instance for `Template` +- Added the `pandocCompilerWithTransformM` function (contribution by Daniil + Frumin) +- Make `./site check` return the right exit code (contribution by Andres Loeh) +- Use OS threads to make `./site watch` work nicely on Windows (contribution by + Simonas Kazlauskas) +- Make the `unixFilter` function work better on windows by calling `shell` + (contribution by Collin J. Doering) +- Add a command-line flag to bind on a user-specified host (contribution by + chrisdotcode) + ## Hakyll 4.4.3.0 - Fix issue when using `metadataRoute` after other custom routes diff --git a/web/tutorials/01-installation.markdown b/web/tutorials/01-installation.markdown index c02a86e..5421c73 100644 --- a/web/tutorials/01-installation.markdown +++ b/web/tutorials/01-installation.markdown @@ -49,7 +49,7 @@ The file `site.hs` holds the configuration of your site, as an executable haskell program. We can compile and run it like this: $ cd my-site - $ ghc --make site.hs + $ ghc --make -threaded site.hs $ ./site build If you installed `hakyll` with a preview server (this is the default), you can diff --git a/web/tutorials/faq.markdown b/web/tutorials/faq.markdown index 66dd4e6..87c1a92 100644 --- a/web/tutorials/faq.markdown +++ b/web/tutorials/faq.markdown @@ -24,6 +24,9 @@ using something like: You should also add this to your `.profile`, or whatever config file you use. +On Windows, running `chcp 65001` before running your Hakyll executable has been +reported to work. + ## "File name does not match module name" on Mac OS Hakyll.hs:1:1: diff --git a/web/tutorials/using-clay-with-hakyll.markdown b/web/tutorials/using-clay-with-hakyll.markdown index e557c3d..c676a80 100644 --- a/web/tutorials/using-clay-with-hakyll.markdown +++ b/web/tutorials/using-clay-with-hakyll.markdown @@ -13,15 +13,25 @@ the CSS. This would be an example of such a file: ``` haskell {-# LANGUAGE OverloadedStrings #-} import Clay -import qualified Data.Text.Lazy.IO as T test :: Css test = ... main :: IO () -main = T.putStr $ render test +main = putCss test ``` +If you prefer the compact version, you're going to have an extra import: + + +``` haskell +import qualified Data.Text.Lazy.IO as T + +main :: IO () +main = T.putStr $ renderWith compact test +``` + + Let's assume such a file is called `css/foo.hs`. In our compiled site, we want to map this to `css/foo.css`. Hence, the route is a simple `setExtension`. For compilation, we simply pass the Clay file through `runghc` with no options. @@ -30,6 +40,9 @@ compilation, we simply pass the Clay file through `runghc` with no options. match "css/*.hs" $ do route $ setExtension "css" compile $ getResourceString >>= withItemBody (unixFilter "runghc" []) + +-- cabal sandbox users can use (unixFilter "cabal" ["exec", "runghc"]) +-- given that you've added cabal to your PATH ``` The major advantage of using this method (as opposed to importing the Clay files |