summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-06-21 17:10:19 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-06-21 17:10:19 +0200
commita5630e8adc54a4cac5fcb2e66c00fc27bdb536c2 (patch)
tree27f17eda8cbafd0df6a3a13d6de170072de7eece /examples
parente4840df7723b5e86ced2b2e6d5b00f5d760ade55 (diff)
downloadhakyll-a5630e8adc54a4cac5fcb2e66c00fc27bdb536c2.tar.gz
Update tutorial, changelog
Diffstat (limited to 'examples')
-rw-r--r--examples/hakyll/changelog.markdown4
-rw-r--r--examples/hakyll/tutorials/part07.markdown25
2 files changed, 22 insertions, 7 deletions
diff --git a/examples/hakyll/changelog.markdown b/examples/hakyll/changelog.markdown
index 3b188d7..27ff5d6 100644
--- a/examples/hakyll/changelog.markdown
+++ b/examples/hakyll/changelog.markdown
@@ -2,6 +2,10 @@
title: Changelog
---
+## Hakyll 2.2
+
+- Allow markup languages in templates.
+
## Hakyll 2.1.1
- Fix issues in autocompilation/preview mode.
diff --git a/examples/hakyll/tutorials/part07.markdown b/examples/hakyll/tutorials/part07.markdown
index d5c194c..87c999a 100644
--- a/examples/hakyll/tutorials/part07.markdown
+++ b/examples/hakyll/tutorials/part07.markdown
@@ -1,6 +1,6 @@
---
title: Interlude
-what: gives some various tips and tricks about Hakyll
+what: gives some various tips and tricks about Hakyll (quite handy, read this!)
---
## Syntax-highlighting
@@ -69,12 +69,6 @@ A few examples:
The benefit of this is simply prettier URL's. That is, if you consider
`example.com/about` prettier than `example.com/about.html`.
-## The gist of it
-
-- Auto-compilation is handy, but a rebuild is recommended before deploying your
- site.
-- You can enable pretty URL's in Hakyll. It is, however, not the default.
-
## Default values
At some point, you might want to use a number of global key-value pairs, for
@@ -89,3 +83,20 @@ example, `$author`. There are two possible ways to achieve this.
that autocompilation mode will pick up changes in this file[^1].
[^1]: Original idea by zenzike.
+
+## Markup in templates
+
+Most of the examples in these tutorials use HTML for templates. However, since
+Hakyll 2.2, it is possible use other markup languages in your templates. Simply
+use an appropriate extension, and Hakyll will pick it up. For example, you could
+write your `templates/post.markdown` template as:
+
+ # $title
+
+ _On $date_
+
+ $body
+
+__Warning__: you shouldn't use markdown for your "root" template, as these
+templates will never insert things like the doctype for you -- so you always
+need at least one top-level HTML template.