From d980dd48ba958caf74c351c8e4797276efc724e1 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sat, 27 Feb 2010 17:24:28 +0100 Subject: Minor tweaks on site, made PagePath a newtype. --- examples/hakyll/index.markdown | 7 ++++--- examples/hakyll/templates/default.html | 2 +- src/Text/Hakyll/Renderables.hs | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/hakyll/index.markdown b/examples/hakyll/index.markdown index 7549d45..b7ecbe3 100644 --- a/examples/hakyll/index.markdown +++ b/examples/hakyll/index.markdown @@ -4,9 +4,10 @@ title: Home ## Overview -Hakyll is a [Haskell](http://haskell.org) library for generating static sites. -It is written in a very configurable way and uses an -[xmonad](http://xmonad.org)-like DSL for configuration. +Hakyll is a [Haskell](http://haskell.org) library for generating static sites, +mostly aimed at small-to-medium sites and personal blogs. It is written in a +very configurable way and uses an [xmonad](http://xmonad.org)-like DSL for +configuration. ## Why static site generators? diff --git a/examples/hakyll/templates/default.html b/examples/hakyll/templates/default.html index 916b0c3..9bcd33a 100644 --- a/examples/hakyll/templates/default.html +++ b/examples/hakyll/templates/default.html @@ -11,7 +11,7 @@ - + diff --git a/src/Text/Hakyll/Renderables.hs b/src/Text/Hakyll/Renderables.hs index 0ccef5f..b16b2bd 100644 --- a/src/Text/Hakyll/Renderables.hs +++ b/src/Text/Hakyll/Renderables.hs @@ -93,8 +93,8 @@ instance Renderable CustomPage where -- | PagePath is a class that wraps a FilePath. This is used to render Pages -- without reading them first through use of caching. -data PagePath = PagePath FilePath - deriving (Ord, Eq, Read, Show) +newtype PagePath = PagePath FilePath + deriving (Ord, Eq, Read, Show) -- | Create a PagePath from a FilePath. createPagePath :: FilePath -> PagePath -- cgit v1.2.3