summaryrefslogtreecommitdiff
path: root/web/tutorials
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2016-04-01 14:14:53 +0200
committerJasper Van der Jeugt <m@jaspervdj.be>2016-04-01 14:14:53 +0200
commit9c7733226bd2228c38bdcda7494a4a7ee232b0c1 (patch)
treeda9cc48680b82ef3b87919ba2f59137938ca91f1 /web/tutorials
parent2fd9929d27b5274ce2cdf7a1893edbd4d0fc9918 (diff)
downloadhakyll-9c7733226bd2228c38bdcda7494a4a7ee232b0c1.tar.gz
Tutorial improvements
Diffstat (limited to 'web/tutorials')
-rw-r--r--web/tutorials/04-compilers.markdown6
-rw-r--r--web/tutorials/external-add-tags-to-your-hakyll-blog.md6
-rw-r--r--web/tutorials/external-deploying-with-widely.md6
-rw-r--r--web/tutorials/external-inlining-and-compressing-css.md6
4 files changed, 22 insertions, 2 deletions
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
diff --git a/web/tutorials/external-add-tags-to-your-hakyll-blog.md b/web/tutorials/external-add-tags-to-your-hakyll-blog.md
new file mode 100644
index 0000000..188e2ea
--- /dev/null
+++ b/web/tutorials/external-add-tags-to-your-hakyll-blog.md
@@ -0,0 +1,6 @@
+---
+title: Add tags to your Hakyll blog
+author: Javran Cheng
+url: https://javran.github.io/posts/2014-03-01-add-tags-to-your-hakyll-blog.html
+external: true
+---
diff --git a/web/tutorials/external-deploying-with-widely.md b/web/tutorials/external-deploying-with-widely.md
new file mode 100644
index 0000000..635ce09
--- /dev/null
+++ b/web/tutorials/external-deploying-with-widely.md
@@ -0,0 +1,6 @@
+---
+title: Deploying with Widely
+author: Kyle Marek-Spartz
+url: http://kyle.marek-spartz.org/posts/2013-12-09-widely-and-hakyll.html
+external: true
+---
diff --git a/web/tutorials/external-inlining-and-compressing-css.md b/web/tutorials/external-inlining-and-compressing-css.md
new file mode 100644
index 0000000..30beca5
--- /dev/null
+++ b/web/tutorials/external-inlining-and-compressing-css.md
@@ -0,0 +1,6 @@
+---
+title: Inlining and compressing CSS
+author: Kyle Marek-Spartz
+url: http://kyle.marek-spartz.org/posts/2014-12-09-hakyll-css-template-compiler.html
+external: true
+---