summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorjamie <git@skilet.ro>2025-06-15 19:53:48 +0100
committerjamie <git@skilet.ro>2025-06-15 19:53:48 +0100
commit1e233b960c1131029d87fa53ceabf2c0b49dcf61 (patch)
tree21d557a1cd972593f89f14798ea70e1911d03e56 /templates
parent7cd5896bdd7b96a0f90f6f3b3720343cd5cbe4d9 (diff)
feat: add linter to flake and format
Diffstat (limited to 'templates')
-rw-r--r--templates/archive.html3
-rw-r--r--templates/default.html62
-rw-r--r--templates/post-list.html6
-rw-r--r--templates/post.html11
4 files changed, 37 insertions, 45 deletions
diff --git a/templates/archive.html b/templates/archive.html
index 80b148f..346e978 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -1,2 +1,3 @@
Here you can find all my previous posts:
-$partial("templates/post-list.html")$ \ No newline at end of file
+<!-- prettier-ignore -->
+$partial("templates/post-list.html")$
diff --git a/templates/default.html b/templates/default.html
index c899cab..0fb6145 100644
--- a/templates/default.html
+++ b/templates/default.html
@@ -1,37 +1,35 @@
<!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" />
+ <link rel="stylesheet" href="/css/syntax.css" />
+ </head>
-<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" />
- <link rel="stylesheet" href="/css/syntax.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>
-<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>
- <main role="main">
- <h1>$title$</h1>
- $body$
- </main>
-
- <footer>
- Site proudly generated by
- <a href="http://jaspervdj.be/hakyll">Hakyll</a>
- </footer>
-</body>
-
-</html> \ No newline at end of file
+ <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
index e40d724..6d50e33 100644
--- a/templates/post-list.html
+++ b/templates/post-list.html
@@ -1,7 +1,5 @@
<ul>
$for(posts)$
- <li>
- <a href="$url$">$title$</a> - $date$
- </li>
+ <li><a href="$url$">$title$</a> - $date$</li>
$endfor$
-</ul> \ No newline at end of file
+</ul>
diff --git a/templates/post.html b/templates/post.html
index e154d51..69d8bae 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -1,11 +1,6 @@
<article>
<section class="header">
- Posted on $date$
- $if(author)$
- by $author$
- $endif$
+ Posted on $date$ $if(author)$ by $author$ $endif$
</section>
- <section>
- $body$
- </section>
-</article> \ No newline at end of file
+ <section>$body$</section>
+</article>