diff options
Diffstat (limited to 'web/tutorials/04-compilers.markdown')
-rw-r--r-- | web/tutorials/04-compilers.markdown | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/tutorials/04-compilers.markdown b/web/tutorials/04-compilers.markdown index d283e9a..a9423dc 100644 --- a/web/tutorials/04-compilers.markdown +++ b/web/tutorials/04-compilers.markdown @@ -1,5 +1,5 @@ --- -title: More on compilers: load, and templates +title: 'More on compilers: load, and templates' author: Jasper Van der Jeugt --- @@ -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 |