packages feed

hakyll-dir-list 1.0.0.0 → 1.0.0.1

raw patch · 4 files changed

+13/−5 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -9,3 +9,7 @@  ## hakyll-dir-list 1.0.0.0 - configurable begin and end tags for items and collections++## hakyll-dir-list 1.0.0.1+- more consistent behaviour of defaultConfiguration,+  in connection with metadataConfiguration
README.md view
@@ -26,6 +26,10 @@ * `page-id`          part of the generated id, if not given the base name of the file * `page-order`       give an ordering key for sorting in the current directory level, if not given the `page-id` will be used ++For a more fine grained control the tags which are used are configurable+for each level of the menu.+ ## Example See the example for an illustration of usage. 
hakyll-dir-list.cabal view
@@ -1,5 +1,5 @@ name:               hakyll-dir-list-version:            1.0.0.0+version:            1.0.0.1  synopsis: Allow Hakyll to create hierarchical menues from directories.  
src/Hakyll/Web/Template/DirList.hs view
@@ -33,9 +33,9 @@     beginItemTag :: Int -> String     -- | end of item tag, default returns '</li>'   , endItemTag :: Int -> String-    -- | begin of collection tag, default returns '<ul>' if level > 0+    -- | begin of collection tag, default returns '<ul>'    , beginCollectionTag :: Int -> String-    -- | end of collection tag, default returns '</ul>' if level > 0+    -- | end of collection tag, default returns '</ul>'    , endCollectionTag :: Int -> String   } @@ -47,8 +47,8 @@ defaultConfiguration = Configuration   { beginItemTag = \_ -> "<li>"   , endItemTag = \_ -> "</li>"-  , beginCollectionTag = \l -> if l > 0 then "<ul>" else ""-  , endCollectionTag = \l -> if l > 0 then "</ul>" else ""+  , beginCollectionTag = \_ -> "<ul>"+  , endCollectionTag = \_ -> "</ul>"   }  -- | Read Configuration from Metadata