diff options
author | EuAndreh <eu@euandre.org> | 2018-07-15 21:11:57 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-07-15 21:12:32 -0300 |
commit | e87dbf00de5c638120e2b7bcb15b0ba8b06a2b2e (patch) | |
tree | f08e59022bb9c863ca8d7eb84d10c3e9c47f8b65 /site/templates | |
parent | Add extra slide reference (diff) | |
download | euandre.org-e87dbf00de5c638120e2b7bcb15b0ba8b06a2b2e.tar.gz euandre.org-e87dbf00de5c638120e2b7bcb15b0ba8b06a2b2e.tar.xz |
Add initial Hakyll website skeleton
Diffstat (limited to '')
-rw-r--r-- | site/templates/archive.html | 2 | ||||
-rw-r--r-- | site/templates/default.html | 36 | ||||
-rw-r--r-- | site/templates/post-list.html | 7 | ||||
-rw-r--r-- | site/templates/post.html | 11 |
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> |