diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-06-05 14:10:07 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-06-05 14:10:11 +0200 |
commit | fd917217ae218d7369a84c0b0dcdd9cfa937ca2a (patch) | |
tree | eda9e2ec83fa4f5835041e521246b1b9abf7d70a /data/example/templates | |
parent | 569c6e035a10c2e3692b5cf72211ea2ad5526b01 (diff) | |
download | hakyll-fd917217ae218d7369a84c0b0dcdd9cfa937ca2a.tar.gz |
Update hakyll-init example to new template system
Diffstat (limited to 'data/example/templates')
-rw-r--r-- | data/example/templates/archive.html | 5 | ||||
-rw-r--r-- | data/example/templates/post-item.html | 3 | ||||
-rw-r--r-- | data/example/templates/post-list.html | 7 |
3 files changed, 9 insertions, 6 deletions
diff --git a/data/example/templates/archive.html b/data/example/templates/archive.html index bc732f9..b43eeb2 100644 --- a/data/example/templates/archive.html +++ b/data/example/templates/archive.html @@ -1,3 +1,2 @@ -<ul> - $posts$ -</ul> +Here you can find all my previous posts: +$partial("templates/post-list.html")$ diff --git a/data/example/templates/post-item.html b/data/example/templates/post-item.html deleted file mode 100644 index decbc33..0000000 --- a/data/example/templates/post-item.html +++ /dev/null @@ -1,3 +0,0 @@ -<li> - <a href="$url$">$title$</a> - $date$ -</li> diff --git a/data/example/templates/post-list.html b/data/example/templates/post-list.html new file mode 100644 index 0000000..71cf1b9 --- /dev/null +++ b/data/example/templates/post-list.html @@ -0,0 +1,7 @@ +<ul> + $for(posts)$ + <li> + <a href="$url$">$title$</a> - $date$ + </li> + $endfor$ +</ul> |