packages feed

hakyll-dir-list 1.0.0.3 → 1.0.0.4

raw patch · 3 files changed

+7/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -4,6 +4,10 @@  # Releases +## hakyll-dir-list 1.0.0.4+- use a double hyphen in Metadata Configuration to get +  an empty tag, this gets no error in YAML parsing+ ## hakyll-dir-list 1.0.0.3 - use a hyphen in Metadata Configuration to get an empty tag - use lts-12.7 stack resolver
hakyll-dir-list.cabal view
@@ -1,5 +1,5 @@ name:               hakyll-dir-list-version:            1.0.0.3+version:            1.0.0.4  synopsis: Allow Hakyll to create hierarchical menues from directories.  
src/Hakyll/Web/Template/DirList.hs view
@@ -61,7 +61,7 @@ --   or if not given an ','. The list holds the --   tags per level, if level is higher than the --   tags in the list the last tag is used.---   Use a hyphen '-' to get an empty string as 'tag'.+--   Use a double hyphen '--' to get an empty string as 'tag'. metadataConfiguration :: Metadata -> Configuration -> Configuration metadataConfiguration md default' =   Configuration @@ -82,7 +82,7 @@     g (_:xs) l = g xs (l - 1)     g [] _ = "<???>" -- this should not happen     t :: String -> String-    t x = if x == "-" then "" else x+    t x = if x == "--" then "" else x    -- | Sort pages alphabetically. alphabetical :: MonadMetadata m => [Item a] -> m [Item a]