summaryrefslogtreecommitdiff
path: root/lib/Hakyll
AgeCommit message (Collapse)AuthorFilesLines
2021-07-17Merge branch 'master' of https://github.com/jaspervdj/hakyllIgor Pashev12-277/+375
2021-07-16Supporting different field names for tags. (#862)Jim McStanton1-3/+9
* Supporting different field names for tags. * Removed buildTagsByField Removed to avoid exponential growth of helper functions. Renamed field parameter in getTagsByField to fieldName to avoid shadowing. * Drop obsolete export Co-authored-by: Alexander Batischev <eual.jp@gmail.com>
2021-06-22add 'forceCompile' rules modifier (#857)Fraser Tweedale2-12/+48
Compilers that use data from sources other than local files may need to be recompiled, but Hakyll's file-based dependency checking does not handle this situation. Add a new kind of dependency called 'AlwaysOutOfDate'. If an item has this dependency, it will be unconditionally rebuilt. Also add the 'forceCompile' rule modifier, which is a user-friendly way to force recompilation of specific items. Example usage: forceCompile $ create ["foo"] $ do route $ idRoute compile $ unsafeCompiler $ doSomeIO
2021-06-06Allow demotion of headers by a given amount (#855)Logan McGrath1-2/+10
2021-05-30Async runtime with graph-based dependency cycle checks (#844)Laurent P. René de Cotret1-136/+183
* Async runtime * Activate multi-threading in template repo * Style changes after feedback * Limiting the number of concurrent tasks * Revert "Limiting the number of concurrent tasks" This reverts commit 38984f6f5332632be8c4cab3e29d37e318492d70.
2021-04-15Remove dependency on cryptonite and memory (#843)Laurent P. René de Cotret1-26/+3
2021-03-14Revert "File.hs: +symlink-based static file compiler; for multi-gigabyte ↵Jasper Van der Jeugt1-16/+0
sites, this can be a major speedup (see #786) (#810)" This reverts commit 84157674d955778c806efdafda311b2732242b38.
2021-03-12Add `renderPandocWithTransform` and `renderPandocWithTransformM`Norman Liu1-3/+30
* added function that allows for pre-pandoc transformations * modified haddock docstring * refactoring to avoid importing the kleisli fish * Renamed `applyPandoc` to `renderPandocWithTransformM`, added non-monadic variant. Exported previous new functions that I forgot to export.
2020-12-29Add documentation for the pandocBiblioCompiler (#828)Chris Jensen1-0/+1
* Add documentation for pandoc * Fix grammar
2020-12-06Pandoc 2.11 compatibility (#826)Jasper Van der Jeugt2-59/+55
* Pandoc 2.11 compatibility * Bump stack.yaml * Bump stack dependencies
2020-11-16Derive Functor, Foldable and Traversable for Item (#815)Mario Lang1-17/+2
2020-11-12File.hs: +symlink-based static file compiler; for multi-gigabyte sites, this ↵Alexander Batischev1-0/+16
can be a major speedup (see #786) (#810) Co-authored-by: gwern <gwern@gwern.net>
2020-11-12Remove unnecessary conditional compilation for parseTimeM (#781)Liang-Ting Chen1-9/+1
2020-09-30 Bump template-haskell and pandoc versions Jasper Van der Jeugt1-0/+10
* Bumped bound for pandoc and add Binary-instances for new constructors that were added to pandoc-types * Support most recent template-haskell release * Set lower bound of pandoc to version 2.10 * Update CI configuration * Bump QuickCheck upper bound to 2.15 Co-authored-by: OC4 <oc4@protonmail.com>
2020-06-30 Continuous integration on Windows and LinuxLaurent P. René de Cotret1-1/+29
2020-06-10Let pandoc-types 1.21+ with new Block constructorsIgor Pashev1-5/+20
2020-06-10Support dd.mm.yyyy date formatIgor Pashev1-0/+3
2020-06-04Allow specifying a metadata providerIgor Pashev5-17/+38
In addition to parsing metadata header & metadata files it will allow any custom routine to extract metadata from the resource files, for example with Pandoc
2020-06-03Remove unused importsIgor Pashev1-3/+1
2020-05-30Miscellaneous Windows-specific fixes and CILaurent P. René de Cotret4-14/+24
2020-05-27Fix for filepath matching on WindowsLaurent P. René de Cotret2-16/+18
2020-04-11Fix MonadFail compilation issue on WindowsMartín Emanuel1-1/+1
See #764
2020-03-07Add MonadFail importsNikolay Yakimov4-0/+4
This fixes v4.13.1.0 on GHC 8.6.
2020-02-26Fix timezone parsing with time-1.9Jasper Van der Jeugt1-0/+3
2020-02-26Fix compilation issuesJasper Van der Jeugt1-1/+1
2020-02-26Use 'cryptonite' instead of 'cryptohash'Hexirp1-2/+16
'cryptohash' is deprecated. The package description says, "please use cryptonite for new projects and convert old one to use cryptonite."
2020-02-26Reorganize Hakyll.Main export listJasper Van der Jeugt1-6/+9
2020-02-26Expose CLI arg parser internalsJim McStanton1-5/+24
2020-02-26Support GHC-8.8Veronika Romashkina5-8/+14
Add MonadFail instances and constraints.
2019-11-27Fix file path for compatibility with WindowsHexirp2-6/+14
2019-11-27Flush log before starting web serverRobert1-0/+1
This fixes out of order console messaging in the case of errors binding to the configured address, though the message order is still a bit weird. Before: $ stack exec site watch Initialising... Creating store... site: Network.Socket.bind: resource busy (Address already in use) Creating provider... Listening on http://127.0.0.1:8000 After: $ stack exec site watch Listening on http://127.0.0.1:8000 Initialising... Creating store... Creating provider... site: Network.Socket.bind: resource busy (Address already in use)
2019-10-29Add titles to tag fieldsJasper Van der Jeugt1-2/+4
2019-10-10Fix a typo, t missing from the.Phil de Joux1-1/+1
2019-08-30Improve error messagesJasper Van der Jeugt12-192/+455
2019-08-25Add getCategory testsDavid Parrish1-1/+1
2019-05-25Add option to specify date in directory structureTaeer Bar-Yam1-2/+9
2019-05-09fixed: auto complete `published` overwrites user's contextncaq1-1/+1
I like following, has written a context to complement from the file name `published`. [www.ncaq.net/site.hs at d8b7eb3426eae36ee0ea5788f32306b9ffa6f9f2 · ncaq/www.ncaq.net](https://github.com/ncaq/www.ncaq.net/blob/d8b7eb3426eae36ee0ea5788f32306b9ffa6f9f2/site.hs#L120) Looking at feed today, I noticed that time is not reflected in `published`. This is because `getItemUTC` overwrites my `published`. Adding a format to `getItemUTC` was not a solution because I live with JST. Also, it is not realistic to write `published` in the yaml metadata of all files, and I think that you want to be delivered as JST as much as possible. Since `updated` does not overwrite the context, I tried to rewrite so that `published` does not overwrite the context. I have confirmed in the local environment that all things work well, is this the intended overwrite? If not, I think it is natural to prioritize the user's context.
2019-05-06Expose `getCategory` in Haskell.Web.TagsNg Wei En1-0/+1
`getCategory` functions similarly to `getTags` and is a pretty useful function to have. Hence, I see no reason why it shouldn't be exposed.
2019-03-10Added "srcset" to the list in `isUrlAttribute`.c50a3261-1/+1
2018-11-24Kill warningJasper Van der Jeugt1-1/+0
2018-11-24Adds render{Rss,Atom}WithTemmplates function in the Web.Feed moduleAbhinav Sarkar1-6/+32
2018-10-28Speed up hashing in cache0xd34df00d1-2/+6
2018-10-13Updated type of fromFilePath to use FilePath instead of StringJim McStanton1-1/+1
Resolves #661
2018-10-02Drop extension when parsing dates in filepathsGabriel Aumala1-2/+2
Drop the file extension when parsing the date from the filepath of a resource.
2018-06-10Use makeRelativeToProject with embedFile (for stack ghci)Michael Sloan1-6/+5
The 'makeRelativeToProject' allows usage of package relative filepaths, even if ghc's working dir is not the package directory. This enables me to have a locally modified version of hakyll as part of my stack project, and run "stack ghci" to load my hakyll project + hakyll all into one ghci session.
2018-05-29Bump tasty to 1.1, fsnotify to 0.3Jasper Van der Jeugt1-18/+8
2018-04-28Fix path resolution in Pandoc.Biblioknih1-5/+13
2018-03-20Make Pandoc dependency optionalBergi1-1/+0
2018-03-18Fix typo in modificationTimeField docstringIustin Pop1-1/+1
2018-03-13Bump dependenciesJasper Van der Jeugt1-0/+1
- Bump pandoc-citeproc to 0.14 - Bump resourcet to 1.2 - Bump time to 1.9 - Bump http-types to 0.12 - Bump http-conduit to 2.3 - Bump tasty-quickcheck to 0.10