summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core
AgeCommit message (Collapse)AuthorFilesLines
2016-07-23Expr trimming. '-' binds to '$'.samgd1-2/+9
2016-05-17Read `.metadata` files using bytestringJasper Van der Jeugt1-1/+3
2016-04-06Clean warningsJasper Van der Jeugt18-32/+6
2016-04-06Hint for weird yaml errorJasper Van der Jeugt1-2/+13
2016-04-06Better errors for yaml parsingJasper Van der Jeugt1-6/+31
2016-04-06Initial YAML supportJasper Van der Jeugt5-80/+131
See #225
2016-03-14Fixes #408: Documentation for "unixFilter" now compilesRichard Cook1-1/+1
2015-06-30Allow empty template, fix some import warningsJasper Van der Jeugt1-1/+1
Closes #355
2015-06-24Improve documentation of getResourceBody, getResourceString, and getResourceLBS.Matthias C. M. Troffaes1-3/+4
See issue #228.
2015-04-07fix building on GHC 7.10Charles Strahan1-0/+1
closes #343
2015-01-10Ensure "Listening on 0.0.0.0:8000" message is not garbledJasper Van der Jeugt1-4/+3
2015-01-09Fix another dependency cycle issueJasper Van der Jeugt1-2/+2
Closes #326
2015-01-06Merge pull request #300 from ohbadiah/masterJasper Van der Jeugt1-3/+14
matchMetadata for examining metadata when defining rules
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-10-28Improve rulesExtraDependencies usageJasper Van der Jeugt1-3/+25
2014-10-27Better functions in templatesJasper Van der Jeugt1-1/+1
2014-09-16matchMetadata for examining metadata when defining rulesNick McAvoy1-0/+14
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 Jeugt1-8/+11
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-11Fix tag dependency issue, slightly improve cachingJasper Van der Jeugt3-5/+7
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-24Add flag to bind on selected host.chrisdotcode1-0/+6
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-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-03Fix issue with metadataRoute for composed routesJasper Van der Jeugt1-5/+13
2013-12-05Revert "Throw an error in case of duplicate compilers"Jasper Van der Jeugt2-19/+6
This reverts commit ffbce966075d258b16b44e6856333ef41e4487f4.
2013-11-22Throw an error in case of duplicate compilersJasper Van der Jeugt2-6/+19
2013-11-18Detect change if metadata file is deletedJasper Van der Jeugt1-1/+3
Closes #191
2013-10-18Added test case for global metadataAlexey Kreshchuk1-1/+1
2013-10-16Track metadata dependenciesAlexey Kreshchuk4-14/+44
I had to prepend some Rules to global Rules set. This might be possible to replaced by a correct Store.set call. I also had to prepend some Compile rules.
2013-10-15Fix root directory in directory-wise metadata and beautify codeAlexey Kreshchuk1-20/+14
2013-10-12Fix loadGlobalMetadata on WindowsAlexey Kreshchuk1-4/+4
2013-10-11added gloabl metadata parsingAlexey Kreshchuk1-2/+43
2013-08-29add preview port Configuration fieldJorge Israel Peña1-0/+5
Make it possible to specify the default port to listen on when the preview server is run. This is useful if another service on the system already runs on port 8000 (the default), since it's a hassle to keep providing the port overriding option. For example: ./site preview vs. ./site preview -p 4000
2013-08-14Fix versions & metadata loading issueJasper Van der Jeugt3-3/+9
Closes #171
2013-06-30Correct example code: parseGlob ==> fromGlobuu11011-1/+1
2013-06-17Merge pull request #162 from uu1101/seq-stderrJasper Van der Jeugt1-0/+2
Deepseq stderr before closing the handle