summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2015-01-03Refactor match and matchMetadata code into matchInternalDaniel P. Wright1-12/+9
As per jaspervdj's request in #300, refactor the common code from match and matchMetadata into a single, unexported function.
2014-12-28Fix dependency handling bugJasper Van der Jeugt1-1/+3
Closes #321
2014-12-12Fix dependency handling for snapshotsJasper Van der Jeugt4-32/+62
2014-11-03Bump fsnotify, citeproc, poll changesJasper Van der Jeugt1-43/+58
2014-10-29Add listFieldWithJasper Van der Jeugt1-1/+8
2014-10-28Improve rulesExtraDependencies usageJasper Van der Jeugt1-3/+25
2014-10-27Better functions in templatesJasper Van der Jeugt5-60/+154
2014-10-07support parsing article date from directory names in addition to file name.Takayuki Muranushi1-4/+8
2014-09-16matchMetadata for examining metadata when defining rulesNick McAvoy1-0/+14
2014-09-08added binary instances for csl and pandoc, fix #174Jan-Philip Loos2-2/+37
2014-08-25Don't have TagSoup decode any HTML entitiesJasper Van der Jeugt1-1/+10
2014-08-20Fix compilation errors with pandoc-citeproc 0.4Rickard Nilsson1-1/+1
2014-06-26Fix build failure introduced by 3ee6f28Simonas Kazlauskas1-1/+1
Fixes #270
2014-06-13Merge pull request #269 from co-dan/demoteheadersJasper Van der Jeugt1-0/+1
Fix #223: `demoteHeaders` should not modify anything in the document, apart from the headers
2014-06-13Generate a cabal file for the initialised siteSimonas Kazlauskas1-8/+52
Fixes #267
2014-06-06Draft paginationJasper Van der Jeugt2-77/+89
2014-05-20Fix issue in paginate dependenciesJasper Van der Jeugt1-3/+3
2014-05-10Allow Emacs org-mode as markup-language in *.org filesAlbert Krewinkel1-0/+1
This closes #231.
2014-05-09Merge pull request #252 from blaenk/mod-timeJasper Van der Jeugt1-4/+3
save modification time with sub-second granularity
2014-05-09Merge branch 'master' of github.com:jaspervdj/hakyllJasper Van der Jeugt2-8/+12
2014-05-09save modification time with sub-second granularityJorge Israel Peña1-4/+3
Some systems can get the file modification time with sub-second granularity. However, Hakyll shaves off the sub-seconds, as defined in the Binary instance of BinaryTime, which poses a problem because when a file is checked to see if it was modified in `resourceModified`, it still contains the sub-seconds. This results in a file (almost) always being considered as having been modified. Example: 1. First go around, modification time is 3:45.325. This time is saved as 3:45.000 (i.e. sub-seconds are shaved off). 2. Second go around, modification time is again read as 3:45.325 and compared against the stored time, 3:45.000. 3:45.325 is more recent than 3:45.000, so the file is considered to have been modified. This change prevents the shaving off of sub-seconds. This will naturally work on systems that don't support sub-second granularity, as that 'field' will simply appear as all zeros. Closes #250
2014-04-27Minor refactor of PR #233Jorge Israel Peña1-8/+11
OS won't change mid-execution, so lets avoid the unnecessary check each time `unixFilter` is run.
2014-04-19FIX: `toSiteRoot` no considers "./" to not be relavent.Izzy Cecil1-0/+1
2014-04-11Fix tag dependency issue, slightly improve cachingJasper Van der Jeugt5-10/+15
2014-04-07Fix compilation when disabling preview serverJasper Van der Jeugt1-1/+1
2014-03-31Added imports that are missing when compiling under Windows.Dacto1-0/+2
2014-03-26Micro cleanup of pull request #233Jasper Van der Jeugt1-4/+12
2014-03-26Revert "added gloabl metadata parsing"Jasper Van der Jeugt1-45/+2
This reverts commit e0f45b29b3f5e17c04ecd054b6c26c67d71e10e4. Conflicts: src/Hakyll/Core/Provider/Metadata.hs
2014-03-26Revert "Fix loadGlobalMetadata on Windows"Jasper Van der Jeugt1-4/+4
This reverts commit e71bbd90a8fb4b5de7796498aed4b95bb7abaebb.
2014-03-26Revert "Fix root directory in directory-wise metadata and beautify code"Jasper Van der Jeugt1-14/+20
This reverts commit a6ae4eb99dd5f9957adc3b5fe4011e69b9681e4c.
2014-03-26Revert "Track metadata dependencies"Jasper Van der Jeugt4-46/+14
This reverts commit 712ffa39b5857fdc5cdae1db38a177267a430b11. Conflicts: src/Hakyll/Core/Metadata.hs src/Hakyll/Core/Rules/Default.hs
2014-03-26Revert "Added test case for global metadata"Jasper Van der Jeugt1-1/+1
This reverts commit 46b6f78da8ed814bef6972f4712d8b13e76c1122. Conflicts: tests/data/posts/metadata
2014-03-26Revert "set internalRules last, so that it can be overrided by rules"Jasper Van der Jeugt1-1/+1
This reverts commit d406db44e39d310a72ca6bb014ed882f0e883995.
2014-03-26Merge pull request #233 from rekahsoft/masterJasper Van der Jeugt1-2/+6
Fix unixFilter on Windows
2014-03-24"Serve on" should be "bind on".chrisdotcode1-1/+1
2014-03-24Add flag to bind on selected host.chrisdotcode4-21/+34
2014-03-23Fix unixFilter on WindowsCollin J. Doering1-2/+6
On windows, the 'unixFilter' function used window's 'createProcess' function to create the external process that will filter some String input. The problem with this is that it is unable to execute batch stubs (eg. anything created using 'gem install ...') even if its in $PATH. Anyways a solution to this issue is to execute the batch file explicitly using 'cmd /c batchfile' but there is no rational way to know where said batchfile is on the system. My solution is to detect windows using the System.Info module and then instead of using 'proc' to create the function, use 'shell' instead which will be able to execute everything 'proc' can + batch files. Inspired by: http://www.blaenkdenum.com/posts/the-switch-to-hakyll/#scss Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-03-04Use OS threads for watch on WindowsSimonas Kazlauskas1-7/+14
2014-02-16Fix #223: `demoteHeaders` should not modify anything in the document, apart ↵Daniil Frumin1-0/+1
from the headers
2014-02-11hakyll check: return exit code of 0 on successAndres Loeh1-1/+1
The old test returns an exit code of 1 whenever the number of errors is >= 0, which should always be the case. The fix replaces this with a test whether the number of errors is strictly > 0.
2014-01-28Don't cache pandocCompilerWithTransform, refactorJasper Van der Jeugt1-10/+9
2014-01-28Merge pull request #215 from co-dan/pandoc-transfJasper Van der Jeugt1-0/+16
Added the `pandocCompilerWithTransformM` function
2014-01-26Typo in Pandoc.hsDan1-1/+1
2014-01-24Added the `pandocCompilerWithTransformM` functionDaniil Frumin1-0/+16
2014-01-23Merge pull request #190 from krsch/masterJasper Van der Jeugt4-4/+73
Implemented per-directory metadata support
2014-01-22Unified code for global and external metadataAlexey Kreshchuk3-6/+10
Didn't clean up unused code though
2014-01-21set internalRules last, so that it can be overrided by rulesAlexey Kreshchuk1-1/+1
2014-01-19Add IsString instance for TemplateJasper Van der Jeugt5-103/+94
Closes #150
2014-01-19Fix escaped quotes + wordingDaniil Frumin1-3/+3
2014-01-19Documentation for the template macrosDaniil Frumin1-0/+83