hakyll 4.12.5.1 → 4.12.5.2
raw patch · 7 files changed
+16/−7 lines, 7 filesdep ~pandocPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
Dependency ranges changed: pandoc
API changes (from Hackage documentation)
+ Hakyll.Web.Tags: getCategory :: MonadMetadata m => Identifier -> m [String]
Files
- CHANGELOG.md +8/−0
- hakyll.cabal +3/−3
- lib/Hakyll/Web/Feed.hs +1/−1
- lib/Hakyll/Web/Html.hs +1/−1
- lib/Hakyll/Web/Tags.hs +1/−0
- tests/Hakyll/Web/Template/Context/Tests.hs +1/−1
- tests/Hakyll/Web/Template/Tests.hs +1/−1
CHANGELOG.md view
@@ -4,6 +4,14 @@ # Releases +## Hakyll 4.12.5.2 (2019-05-09)++- Bump pandoc to 2.7+- Add `srcset` to the list of URL attributes (contribution by c50a326)+- Expose `getCategory` in `Hakyll.Web.Tags` (contribution by Ng Wei En)+- Fix issue where `published` overwrites the user's context (contribution by+ ncaq)+ ## Hakyll 4.12.5.1 (2019-02-03) - Bump pandoc to 2.6
hakyll.cabal view
@@ -1,5 +1,5 @@ Name: hakyll-Version: 4.12.5.1+Version: 4.12.5.2 Synopsis: A static website compiler library Description:@@ -228,7 +228,7 @@ Other-Modules: Hakyll.Web.Pandoc.Binary Build-Depends:- pandoc >= 2.0.5 && < 2.7,+ pandoc >= 2.0.5 && < 2.8, pandoc-citeproc >= 0.14 && < 0.17 Cpp-options: -DUSE_PANDOC@@ -322,4 +322,4 @@ base >= 4 && < 5, directory >= 1.0 && < 1.4, filepath >= 1.0 && < 1.5,- pandoc >= 2.0.5 && < 2.7+ pandoc >= 2.0.5 && < 2.8
lib/Hakyll/Web/Feed.hs view
@@ -177,4 +177,4 @@ -- | Copies @$updated$@ from @$published$@ if it is not already set. makeItemContext :: String -> Context a -> Context a makeItemContext fmt context = mconcat- [dateField "published" fmt, context, dateField "updated" fmt]+ [context, dateField "published" fmt, dateField "updated" fmt]
lib/Hakyll/Web/Html.hs view
@@ -59,7 +59,7 @@ -------------------------------------------------------------------------------- isUrlAttribute :: String -> Bool-isUrlAttribute = (`elem` ["src", "href", "data", "poster"])+isUrlAttribute = (`elem` ["src", "href", "data", "poster", "srcset"]) --------------------------------------------------------------------------------
lib/Hakyll/Web/Tags.hs view
@@ -43,6 +43,7 @@ module Hakyll.Web.Tags ( Tags (..) , getTags+ , getCategory , buildTagsWith , buildTags , buildCategories
tests/Hakyll/Web/Template/Context/Tests.hs view
@@ -21,7 +21,7 @@ -------------------------------------------------------------------------------- tests :: TestTree-tests = testGroup "Hakyll.Core.Template.Context.Tests"+tests = testGroup "Hakyll.Web.Template.Context.Tests" [ testCase "testDateField" testDateField ]
tests/Hakyll/Web/Template/Tests.hs view
@@ -25,7 +25,7 @@ -------------------------------------------------------------------------------- tests :: TestTree-tests = testGroup "Hakyll.Core.Template.Tests" $ concat+tests = testGroup "Hakyll.Web.Template.Tests" $ concat [ [ testCase "case01" $ test ("template.html.out", "template.html", "example.md") , testCase "case02" $ test ("strip.html.out", "strip.html", "example.md") , testCase "case03" $ test ("just-meta.html.out", "just-meta.html", "example.md")