diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/archive.html | 3 | ||||
| -rw-r--r-- | templates/default.html | 62 | ||||
| -rw-r--r-- | templates/post-list.html | 6 | ||||
| -rw-r--r-- | templates/post.html | 11 |
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> |
