summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core
AgeCommit message (Collapse)AuthorFilesLines
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
2013-06-17Only add teaser when <!--more--> is thereJasper Van der Jeugt1-17/+26
2013-06-14Set handle encoding as per localeuu11011-0/+1
2013-06-14Deepseq stderr before closing the handleuu11011-0/+1
Otherwise laziness allows for the handle to be closed withouth receiving the input. This caused that no error messages were printed when `unixFilter`s failed.
2013-06-06teaserContext -> teaserFieldJasper Van der Jeugt1-1/+0
2013-05-22Deploy should propagate error codeSimonas Kazlauskas1-3/+4
And return 1 if neither deployCommand and deploySite is set.
2013-05-07Add partials to template systemJasper Van der Jeugt1-1/+1
2013-05-06Implement foreach structureJasper Van der Jeugt1-1/+1
2013-05-05Logged dependencies adding for debugging purposes.Ivan N. Veselov1-1/+5
2013-05-04Added "teasers" support to be used in posts index.Ivan N. Veselov1-0/+20
Just add "<!-- teaser_end -->" to separate the teaser and the rest of the article and use "$teaser$" key in the template! Closes issue #35.
2013-05-04Minor style changesJasper Van der Jeugt2-13/+11
2013-05-04Created tests and fixed isMember functionnoxx1-11/+10
2013-05-04Added isMember to load functionnoxx1-7/+3
2013-05-04Added isMember functions for Storenoxx1-0/+22
2013-05-04Style changes, move stuff to common parser moduleJasper Van der Jeugt3-4/+35
2013-05-04Merge remote-tracking branch 'sphynx/master'Jasper Van der Jeugt1-0/+8
2013-05-03Added MonadError's instance for Compiler.Ivan N. Veselov1-0/+8
2013-05-03Close open cache files as soon as possibleJasper Van der Jeugt1-15/+24
See #124
2013-05-03More granular dependencies for routesJasper Van der Jeugt3-13/+29
See #121