aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel.to.malpa@gmail.com>2019-12-29 00:10:26 +0100
committerPaweł Dybiec <pawel.to.malpa@gmail.com>2019-12-29 00:10:26 +0100
commit9fdd10accfc7bd7d8f7f88cfb383100ee8cb83ee (patch)
treeea06f74795b221ae8412dc47115687b200fc3904 /templates
parentInitial commit (diff)
Template
Diffstat (limited to 'templates')
-rw-r--r--templates/archive.html2
-rw-r--r--templates/default.html33
-rw-r--r--templates/post-list.html7
-rw-r--r--templates/post.html11
4 files changed, 53 insertions, 0 deletions
diff --git a/templates/archive.html b/templates/archive.html
new file mode 100644
index 0000000..b43eeb2
--- /dev/null
+++ b/templates/archive.html
@@ -0,0 +1,2 @@
+Here you can find all my previous posts:
+$partial("templates/post-list.html")$
diff --git a/templates/default.html b/templates/default.html
new file mode 100644
index 0000000..e91badc
--- /dev/null
+++ b/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/templates/post-list.html b/templates/post-list.html
new file mode 100644
index 0000000..71cf1b9
--- /dev/null
+++ b/templates/post-list.html
@@ -0,0 +1,7 @@
+<ul>
+ $for(posts)$
+ <li>
+ <a href="$url$">$title$</a> - $date$
+ </li>
+ $endfor$
+</ul>
diff --git a/templates/post.html b/templates/post.html
new file mode 100644
index 0000000..732149b
--- /dev/null
+++ b/templates/post.html
@@ -0,0 +1,11 @@
+<article>
+ <section class="header">
+ Posted on $date$
+ $if(author)$
+ by $author$
+ $endif$
+ </section>
+ <section>
+ $body$
+ </section>
+</article>