summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/examples.markdown2
-rw-r--r--web/releases.markdown6
-rw-r--r--web/tutorials/using-teasers-in-hakyll.markdown13
3 files changed, 21 insertions, 0 deletions
diff --git a/web/examples.markdown b/web/examples.markdown
index ab49e2f..2ddc2ed 100644
--- a/web/examples.markdown
+++ b/web/examples.markdown
@@ -51,6 +51,8 @@ this list. This list has no particular ordering.
[source](https://github.com/CleverCloud/clever-cloud.com)
- <http://blaenkdenum.com/>,
[source](https://github.com/blaenk/blaenk.github.io)
+- <https://xinitrc.de/>,
+ [source](https://github.com/xinitrc/xinitrc.de)
## Hakyll 3.X
diff --git a/web/releases.markdown b/web/releases.markdown
index 7ee5aa2..47014a1 100644
--- a/web/releases.markdown
+++ b/web/releases.markdown
@@ -4,6 +4,12 @@ title: Releases
# Releases
+## Hakyll 4.3.1.0
+
+- Make teasers undefined if no `<!--more-->` comment is found
+
+- Sanitize tag URLs (contribution by Simonas Kazlauskas)
+
## Hakyll 4.3.0.0
- Add conditionals, partials and for loops to the template system (includes a
diff --git a/web/tutorials/using-teasers-in-hakyll.markdown b/web/tutorials/using-teasers-in-hakyll.markdown
index ebff3e7..978d37b 100644
--- a/web/tutorials/using-teasers-in-hakyll.markdown
+++ b/web/tutorials/using-teasers-in-hakyll.markdown
@@ -83,6 +83,19 @@ Here, we've just added a new context which knows how to handle
`$teaser$` key to the default context (note that we passed the same
snapshot name `"content"` which we used while saving).
+## Optional teasers
+
+In case you don't add a `<!--more-->` comment, `$teaser$` will not be defined.
+This means you can use something like:
+
+```html
+$if(teaser)$
+ $teaser$
+$else$
+ $body$
+$endif$
+```
+
## Known issues
Since we use an HTML comment `<!--more-->` to separate the teaser,