From 9c7733226bd2228c38bdcda7494a4a7ee232b0c1 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Fri, 1 Apr 2016 14:14:53 +0200 Subject: Tutorial improvements --- web/tutorials/04-compilers.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web/tutorials/04-compilers.markdown') diff --git a/web/tutorials/04-compilers.markdown b/web/tutorials/04-compilers.markdown index d283e9a..4679bb6 100644 --- a/web/tutorials/04-compilers.markdown +++ b/web/tutorials/04-compilers.markdown @@ -115,8 +115,10 @@ you to use: - `$path$` for the original filepath of the page; - `$foo$` where foo is specified in the metadata. -`$date$` is not provided by default, you can see how we add it in the definition -of `postCtx` in `site.hs`: +`$date$` is not provided by default. In the scaffold, we use the convenience +context function `dateField`, which will parse an `Item`'s filename to check if +it begins with a date. You can see how we add it in the definition of `postCtx` +in `site.hs`: ```haskell postCtx :: Context String -- cgit v1.2.3