on master help sign in
Tutorial improvements
commit9c7733226bd2228c38bdcda7494a4a7ee232b0c1 authorJasper Van der Jeugt <m@jaspervdj.be> dateFri 1 Apr 2016, 14:14 (11 years ago) parent2fd9929
4 files changed+22−2
web/tutorials/04-compilers.markdown+4−2 web/tutorials/external-add-tags-to-your-hakyll-blog.md+6 web/tutorials/external-deploying-with-widely.md+6 web/tutorials/external-inlining-and-compressing-css.md+6
web/tutorials/04-compilers.markdown+4−2
@@ -115,8 +115,10 @@ you to use:
115115- `$path$` for the original filepath of the page;
116116- `$foo$` where foo is specified in the metadata.
117117
118−`$date$` is not provided by default, you can see how we add it in the definition
119−of `postCtx` in `site.hs`:
118+`$date$` is not provided by default. In the scaffold, we use the convenience
119+context function `dateField`, which will parse an `Item`'s filename to check if
120+it begins with a date. You can see how we add it in the definition of `postCtx`
121+in `site.hs`:
120122
121123```haskell
122124postCtx :: Context String
web/tutorials/external-add-tags-to-your-hakyll-blog.mdnew file+6
@@ -0,0 +1,6 @@
1+---
2+title: Add tags to your Hakyll blog
3+author: Javran Cheng
4+url: https://javran.github.io/posts/2014-03-01-add-tags-to-your-hakyll-blog.html
5+external: true
6+---
web/tutorials/external-deploying-with-widely.mdnew file+6
@@ -0,0 +1,6 @@
1+---
2+title: Deploying with Widely
3+author: Kyle Marek-Spartz
4+url: http://kyle.marek-spartz.org/posts/2013-12-09-widely-and-hakyll.html
5+external: true
6+---
web/tutorials/external-inlining-and-compressing-css.mdnew file+6
@@ -0,0 +1,6 @@
1+---
2+title: Inlining and compressing CSS
3+author: Kyle Marek-Spartz
4+url: http://kyle.marek-spartz.org/posts/2014-12-09-hakyll-css-template-compiler.html
5+external: true
6+---