diff options
author | Joris | 2016-10-29 21:43:37 +0200 |
---|---|---|
committer | Joris | 2016-10-29 21:43:37 +0200 |
commit | 14858277fb74c3788af1226f37b22089229edc34 (patch) | |
tree | fc3c0a87429362c55673d72518e97a9d6f5bd80d /templates | |
parent | 57c4fa462996307293e3da3068ec40ef69000e13 (diff) |
Use Hakyll to generate web pages
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.html | 21 | ||||
-rw-r--r-- | templates/recipe-list.html | 7 |
2 files changed, 28 insertions, 0 deletions
diff --git a/templates/main.html b/templates/main.html new file mode 100644 index 0000000..36da806 --- /dev/null +++ b/templates/main.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="fr"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>$title$</title> + <link rel="stylesheet" href="/design/main.css" /> + </head> + <body> + <a href="/" class="header"> + Recettes + </a> + <div id="content"> + $if(hideTitle)$ + $else$ + <h1>$title$</h1> + $endif$ + $body$ + </div> + </body> +</html> diff --git a/templates/recipe-list.html b/templates/recipe-list.html new file mode 100644 index 0000000..372a2e8 --- /dev/null +++ b/templates/recipe-list.html @@ -0,0 +1,7 @@ +<ul> + $for(recipes)$ + <li> + <a href="$url$">$title$</a> + </li> + $endfor$ +</ul> |