templates: initial commit

This commit is contained in:
Fiscal Velvet Poet 2021-10-27 17:06:59 +10:00
parent ab121e3304
commit 26475cef03
Signed by: fiscalvelvetpoet
GPG key ID: D8EBFD58B023BD47
4 changed files with 53 additions and 0 deletions

2
templates/archive.html Normal file
View file

@ -0,0 +1,2 @@
Here you can find all my previous posts:
$partial("templates/post-list.html")$

33
templates/default.html Normal file
View file

@ -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>JFDIC - $title$</title>
<link rel="stylesheet" href="/css/default.css" />
</head>
<body>
<header>
<div class="logo">
<a href="/">JFDIC</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>
generated by
<a href="http://jaspervdj.be/hakyll">hakyll</a>
</footer>
</body>
</html>

7
templates/post-list.html Normal file
View file

@ -0,0 +1,7 @@
<ul>
$for(posts)$
<li>
<a href="$url$">$title$</a> - $date$
</li>
$endfor$
</ul>

11
templates/post.html Normal file
View file

@ -0,0 +1,11 @@
<article>
<section class="header">
Posted on $date$
$if(author)$
by $author$
$endif$
</section>
<section>
$body$
</section>
</article>