aboutsummaryrefslogtreecommitdiff
path: root/site/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--site/templates/archive.html2
-rw-r--r--site/templates/default.html36
-rw-r--r--site/templates/post-list.html7
-rw-r--r--site/templates/post.html11
4 files changed, 56 insertions, 0 deletions
diff --git a/site/templates/archive.html b/site/templates/archive.html
new file mode 100644
index 0000000..b43eeb2
--- /dev/null
+++ b/site/templates/archive.html
@@ -0,0 +1,2 @@
+Here you can find all my previous posts:
+$partial("templates/post-list.html")$
diff --git a/site/templates/default.html b/site/templates/default.html
new file mode 100644
index 0000000..d206178
--- /dev/null
+++ b/site/templates/default.html
@@ -0,0 +1,36 @@
+<!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>EuAndreh's - $title$</title>
+ <link rel="stylesheet" href="/css/styles.css" />
+ <link rel="alternate" type="application/atom+xml" href="/feed.xml" title="Atom Feed" />
+ </head>
+ <body>
+ <header>
+ <div class="logo">
+ <a href="/">EuAndreh's Blog</a>
+ </div>
+ <nav>
+ <a href="/">Home</a>
+ <a href="/about.html">About</a>
+ <a href="/archive.html">Archive</a>
+ <a class="feed-icon" href="./feed.xml">
+ <img src="./images/rss.svg" alt="Blog feed" />
+ </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/site/templates/post-list.html b/site/templates/post-list.html
new file mode 100644
index 0000000..c64cdbd
--- /dev/null
+++ b/site/templates/post-list.html
@@ -0,0 +1,7 @@
+<ul>
+ $for(posts)$
+ <li>
+ <a href="$url$">$title$</a> - $date$
+ </li>
+ $endfor$
+</ul>
diff --git a/site/templates/post.html b/site/templates/post.html
new file mode 100644
index 0000000..428ebff
--- /dev/null
+++ b/site/templates/post.html
@@ -0,0 +1,11 @@
+<article>
+ <section class="header">
+ Posted on $date$
+ $if(author)$
+ by $author$
+ $endif$
+ </section>
+ <section>
+ $body$
+ </section>
+</article>