summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-12 16:54:31 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-12 16:54:31 +0100
commit1e0c875d6efd67bda010573fc8bb935eef2ea225 (patch)
treec6a2e85c8b913459d21492e61b471ac508ee6ba6 /src/Hakyll/Core
parentf910233e0ff0e276a10a1a8f37cf4c02499ef9ae (diff)
downloadhakyll-1e0c875d6efd67bda010573fc8bb935eef2ea225.tar.gz
More Identifier documentation
Diffstat (limited to 'src/Hakyll/Core')
-rw-r--r--src/Hakyll/Core/Identifier.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Hakyll/Core/Identifier.hs b/src/Hakyll/Core/Identifier.hs
index ea03e8c..16403e6 100644
--- a/src/Hakyll/Core/Identifier.hs
+++ b/src/Hakyll/Core/Identifier.hs
@@ -10,6 +10,16 @@
--
-- * @error/404@
--
+-- The most important difference between an 'Identifier' and a file path is that
+-- the identifier for an item is not necesserily the file path.
+--
+-- For example, we could have an @index@ identifier, generated by Hakyll. The
+-- actual file path would be @index.html@, but we identify it using @index@.
+--
+-- @posts/foo.markdown@ could be an identifier of an item that is rendered to
+-- @posts/foo.html@. In this case, the identifier is the name of the source
+-- file of the page.
+--
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Hakyll.Core.Identifier
( Identifier (..)