diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-03-30 21:32:12 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-03-30 21:32:12 +0200 |
commit | bb3f0d3cff573fe20df41b715b787e77d6bc9b40 (patch) | |
tree | 3219ccb94d5112e5bd680c9098c556bf2f8256a1 /web/templates | |
parent | 7d4a83294dc7cc88b0823759364bab39bae56276 (diff) | |
download | hakyll-bb3f0d3cff573fe20df41b715b787e77d6bc9b40.tar.gz |
Add external articles
Diffstat (limited to 'web/templates')
-rw-r--r-- | web/templates/tutorial-item.html | 1 | ||||
-rw-r--r-- | web/templates/tutorials.html | 36 |
2 files changed, 34 insertions, 3 deletions
diff --git a/web/templates/tutorial-item.html b/web/templates/tutorial-item.html deleted file mode 100644 index e0d7866..0000000 --- a/web/templates/tutorial-item.html +++ /dev/null @@ -1 +0,0 @@ -<li><a href="$url$">$title$</a> by <em>$author$</em></li> diff --git a/web/templates/tutorials.html b/web/templates/tutorials.html index 36c808c..6bd8351 100644 --- a/web/templates/tutorials.html +++ b/web/templates/tutorials.html @@ -1,9 +1,36 @@ <h1>Tutorials about Hakyll</h1> <h2>Tutorial series</h2> -<ul>$series$</ul> +<ul> + $for(tutorials)$ + $if(isSeries)$ + <li> + <a href="$url$">$title$</a> + </li> + $endif$ + $endfor$ +</ul> <h2>Other articles</h2> <p>In no particular order:</p> -<ul>$articles$</ul> +<ul> + $for(tutorials)$ + $if(isArticle)$ + <li> + <a href="$url$">$title$</a> by <em>$author$</em> + </li> + $endif$ + $endfor$ +</ul> +<h2>External articles</h2> +<p>In no particular order:</p> +<ul> + $for(tutorials)$ + $if(isExternal)$ + <li> + <a href="$url$">$title$</a> by <em>$author$</em> + </li> + $endif$ + $endfor$ +</ul> <p> All these tutorials assume you are using the latest stable version of Hakyll. If this is not the case, you might want to update using: @@ -11,3 +38,8 @@ <pre><code>$$ ghc-pkg unregister hakyll $$ cabal update $$ cabal install hakyll</code></pre> + +<p> + Or using stack: +</p> +<pre><code>$$ stack install hakyll</code></pre> |