summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web
AgeCommit message (Collapse)AuthorFilesLines
2013-09-29Enable Pandoc highlighting by defaultJasper Van der Jeugt1-0/+3
2013-09-18updated to work with pandoc 1.12Jorge Israel Peña1-9/+6
Pandoc 1.12 decouples citeproc-hs from itself, so there is no longer a Text.Pandoc.Biblio module in Pandoc. Further, citeproc-hs depends on pandoc-types 1.10 but Pandoc 1.12 depends on pandoc-types 1.12. To alleviate these issues, pandoc-citeproc was created which includes a copy of the citeproc-hs source made to be compatible, since the developer of citeproc-hs is apparently MIA. pandoc-citeproc is a separate module that handles the mixture of citeproc-hs and Pandoc. It includes `processCites` in Text.CSL.Pandoc, which is the new name of what used to be `processBiblio` from Text.Pandoc.Biblio Most of these changes are seamless, consisting of simple name changes in both functions and modules. However, a more direct change in the Hakyll API itself is that `readPandocBiblio`'s second parameter, the CSL, is now mandatory, i.e. not of type Maybe. This is to reflect the same change in the underlying processing function from Text.CSL.Pandoc, `processCites`, where the Style argument is now mandatory, and the style is derived from the CSL. See the old function: processBiblio :: Maybe Style -> [Reference] -> Pandoc -> Pandoc Compared to the new one: processCites :: Style -> [Reference] -> Pandoc -> Pandoc Sources: * http://hackage.haskell.org/packages/archive/pandoc/1.11.1/doc/html/Text-Pandoc-Biblio.html * http://hackage.haskell.org/packages/archive/pandoc-citeproc/0.1/doc/html/Text-CSL-Pandoc.html Similarly, there is no longer a `readerReferences` field in the reader options structure.
2013-09-16Fix incorrect output of toSiteRoot on Windows.Saeid Al-Wazzan1-1/+1
toSiteRoot uses splitPath, joinPath, and takeDirectory from the System.FilePath module. On Windows systems, the implementation of joinPath will build up a path using the Windows path separator "\\". We don't want this behavior since the paths we are working with are always URLs, so we force POSIX behavior for System.FilePath.
2013-08-16Change type: metadataField :: Context aJasper Van der Jeugt1-1/+1
Closes #175
2013-08-13Explode when using mapContext over ListFieldJasper Van der Jeugt1-3/+5
2013-08-10Add functionField againJasper Van der Jeugt2-1/+11
2013-08-05Add mapContext againJasper Van der Jeugt1-1/+11
2013-06-17Only add teaser when <!--more--> is thereJasper Van der Jeugt1-3/+7
2013-06-16Make toUri sanitise all characters neededSimonas Kazlauskas1-4/+6
2013-06-15Sanitize URLs in toUrlJasper Van der Jeugt1-2/+10
Closes #163
2013-06-06teaserContext -> teaserFieldJasper Van der Jeugt1-11/+13
2013-05-07Add partials to template systemJasper Van der Jeugt3-5/+36
2013-05-06Implement foreach structureJasper Van der Jeugt5-43/+78
2013-05-06Paginate simplificationJasper Van der Jeugt2-206/+134
2013-05-05Added pagination support.Anton Dubovik1-0/+206
2013-05-04Changed the teaser separator to "more" to use the same format as WordPress does.Ivan N. Veselov1-1/+1
2013-05-04Added a comment explaining "teaserContext" function.Ivan N. Veselov1-0/+3
2013-05-04Added "teasers" support to be used in posts index.Ivan N. Veselov1-1/+13
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-04Style changes, move stuff to common parser moduleJasper Van der Jeugt3-45/+47
2013-05-03Removed unnecessary import.Ivan N. Veselov1-1/+1
2013-05-03Added support for "$if$" statement in templates.Ivan N. Veselov3-40/+67
2013-04-29Merge pull request #138 from christopheryoung/masterJasper Van der Jeugt1-1/+1
Documentation tweaks: two small typos and $PATH variable documentation for OS X
2013-04-23Adding in the short form date parsingParnell Springmeyer1-0/+1
2013-04-22Micro cleanupJasper Van der Jeugt1-10/+8
2013-04-22Merge pull request #133 from simukis/scheme-relativeJasper Van der Jeugt1-1/+1
Account for scheme-relative URLs
2013-04-21Fix indentIan Ross1-1/+1
2013-04-21Improve tag handling APIIan Ross1-24/+97
Expose function tagsFieldWith and renderTagCloudWith to provide more flexible tag rendering APIs; add tagCloudField and tagCloudFieldWith to provide context-based facility for tag cloud rendering.
2013-04-21Add "data" as a URL attributeIan Ross1-1/+1
2013-04-12Fix typoChristopher Young1-1/+1
2013-04-04Account for scheme-relative URLsSimonas Kazlauskas1-1/+1
http://url.spec.whatwg.org/#concept-scheme-relative-url
2013-04-04Debug info for Alternative instancesJasper Van der Jeugt1-1/+1
See #126
2013-03-16Merge pull request #123 from simukis/utc-updateJasper Van der Jeugt1-13/+25
Support timezones
2013-03-16Support timezones as wellSimonas Kazlauskas1-7/+24
2013-03-16renderDateField does not existSimonas Kazlauskas1-6/+1
2013-03-16`chronological` docs updateSimonas Kazlauskas1-3/+2
`chronological` now respects metadata too and uses same method as dateField to get date for sorting.
2013-03-07Add utility getMetadataFieldJasper Van der Jeugt1-2/+2
2013-02-23Fix unused imports warningsJasper Van der Jeugt1-3/+1
2013-02-23Fix code styleSimonas Kazlauskas1-4/+6
2013-02-23Generalize getTimeUTC, chronological, recentFirstSimonas Kazlauskas2-6/+8
2013-02-23chronological, recentFirst now respects metadataSimonas Kazlauskas1-5/+10
Solves #111
2013-02-09Start provider rewriteJasper Van der Jeugt1-2/+1
2013-01-28Fix .tex.lhs patch, add some test casesJasper Van der Jeugt1-3/+7
2013-01-28Read second extension to find our inner .lhs formatAlexander Vershilov1-20/+20
.md.lhs -> will be read as markdown + lhs .tex.lhs -> will be read as latex +lhs markdown format is default
2013-01-26Export renderTags as wellJasper Van der Jeugt1-7/+4
2013-01-26Export the Tags datatype constructorJasper Van der Jeugt1-1/+1
2013-01-20Fix issue with tagsoup renderTagsJasper Van der Jeugt1-3/+11
2013-01-20Update to use pandoc 1.9Jasper Van der Jeugt2-41/+48
2013-01-16Export getItemUTC for convenienceJasper Van der Jeugt1-6/+10
2013-01-16Add applyJoinTemplateList, and a test for itJasper Van der Jeugt2-12/+35
2013-01-14Append missingField before applying templatesJasper Van der Jeugt1-6/+5
This gives better errror messages in some cases