diff options
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/archive.html | 2 | ||||
-rw-r--r-- | src/templates/default.html | 33 | ||||
-rw-r--r-- | src/templates/post-list.html | 7 | ||||
-rw-r--r-- | src/templates/post.html | 11 |
4 files changed, 53 insertions, 0 deletions
diff --git a/src/templates/archive.html b/src/templates/archive.html new file mode 100644 index 0000000..b43eeb2 --- /dev/null +++ b/src/templates/archive.html @@ -0,0 +1,2 @@ +Here you can find all my previous posts: +$partial("templates/post-list.html")$ diff --git a/src/templates/default.html b/src/templates/default.html new file mode 100644 index 0000000..e91badc --- /dev/null +++ b/src/templates/default.html @@ -0,0 +1,33 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta http-equiv="x-ua-compatible" content="ie=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>My Hakyll Blog - $title$</title> + <link rel="stylesheet" href="/css/default.css" /> + </head> + <body> + <header> + <div class="logo"> + <a href="/">My Hakyll Blog</a> + </div> + <nav> + <a href="/">Home</a> + <a href="/about.html">About</a> + <a href="/contact.html">Contact</a> + <a href="/archive.html">Archive</a> + </nav> + </header> + + <main role="main"> + <h1>$title$</h1> + $body$ + </main> + + <footer> + Site proudly generated by + <a href="http://jaspervdj.be/hakyll">Hakyll</a> + </footer> + </body> +</html> diff --git a/src/templates/post-list.html b/src/templates/post-list.html new file mode 100644 index 0000000..71cf1b9 --- /dev/null +++ b/src/templates/post-list.html @@ -0,0 +1,7 @@ +<ul> + $for(posts)$ + <li> + <a href="$url$">$title$</a> - $date$ + </li> + $endfor$ +</ul> diff --git a/src/templates/post.html b/src/templates/post.html new file mode 100644 index 0000000..732149b --- /dev/null +++ b/src/templates/post.html @@ -0,0 +1,11 @@ +<article> + <section class="header"> + Posted on $date$ + $if(author)$ + by $author$ + $endif$ + </section> + <section> + $body$ + </section> +</article> |