diff options
Diffstat (limited to '')
| -rw-r--r-- | templates/archives.html | 3 | ||||
| -rw-r--r-- | templates/base.html | 40 | ||||
| -rw-r--r-- | templates/default.html | 33 | ||||
| -rw-r--r-- | templates/post-list.html | 7 | ||||
| -rw-r--r-- | templates/post.html | 30 | ||||
| -rw-r--r-- | templates/sitemap.xml | 23 | ||||
| -rw-r--r-- | templates/tag.html | 4 | ||||
| -rw-r--r-- | templates/thumbs.html | 27 | 
8 files changed, 167 insertions, 0 deletions
| diff --git a/templates/archives.html b/templates/archives.html new file mode 100644 index 0000000..2398a94 --- /dev/null +++ b/templates/archives.html @@ -0,0 +1,3 @@ +<main role="main" class="panel"> +  $partial("templates/post-list.html")$ +</main>
\ No newline at end of file diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..c818385 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<html> + +<head> +  <meta charset="utf-8"> +  <meta http-equiv="x-ua-compatible" content="ie=edge"> +  <meta name="viewport" content="width=device-width, initial-scale=1"> +  $if(title)$ +  <title>info{culture} - $title$</title> +  $else$ +  <title>info{culture}</title> +  $endif$ +  <link rel="icon" href="/assets/favicon.ico" /> +  <link rel="stylesheet" href="/style.css" /> +</head> + +<body> +  <header> +    <a href="https://infoculture.pub"><img src="/assets/logo.svg" alt="infoculture" /></a> +  </header> + +  <nav> +    <ul> +      <li><a href="/">home</a></li> +      <li><a href="/about">about</a></li> +      <li><a href="/contact">contact</a></li> +      <li><a href="/archives">archives</a></li> +      <li id="atom-badge"> +        <a href="/feed.xml"><img src="/assets/atom.png"></a> +      </li> +    </ul> +  </nav> + +  $body$ + +  <footer> +  </footer> +</body> + +</html>
\ No newline at end of file diff --git a/templates/default.html b/templates/default.html new file mode 100644 index 0000000..e91badc --- /dev/null +++ b/templates/default.html @@ -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>My Hakyll Blog - $title$</title> +        <link rel="stylesheet" href="/css/default.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> + +        <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/templates/post-list.html b/templates/post-list.html new file mode 100644 index 0000000..22fcc2f --- /dev/null +++ b/templates/post-list.html @@ -0,0 +1,7 @@ +<ul class="post-list"> +  $for(posts)$ +  <li> +    <a href="$url$">$date$ - $title$</a> +  </li> +  $endfor$ +</ul>
\ No newline at end of file diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..77986ae --- /dev/null +++ b/templates/post.html @@ -0,0 +1,30 @@ +<main role="main"> +  <article> +    $if(thumbnail)$ +    <div class="thumbnail" style="height: 30vh;">$thumbnail$</div> +    $endif$ +    <div class="panel"> +      <section class="header"> +        <div class="title"> +          <h1>$title$</h1> +          <a href="https://infoculture.pub$url$">permalink</a> +          <a href="/$path$">raw</a> +        </div> +        <div class="meta"> +          $if(author)$ +          <h2 class="author">$author$</h2> +          $endif$ +          <h3 class="date">$date$</h3> +          $if(tags)$ +          <h3 class="tags">$tags$</h3> +          $endif$ +        </div> +      </section> +      <br> +      <br> +      <section> +        $body$ +      </section> +    </div> +  </article> +</main>
\ No newline at end of file diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..1ff6a8e --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<urlset +  xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" +  xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" +  xmlns:xhtml="http://www.w3.org/1999/xhtml" +  xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" +  xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" +  xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" +> +  <url> +    <loc>$root$</loc> +    <changefreq>daily</changefreq> +    <priority>1.0</priority> +  </url> +$for(pages)$ +  <url> +    <loc>$root$$url$</loc> +    <lastmod>$if(updated)$$updated$$else$$if(date)$$date$$endif$$endif$</lastmod> +    <changefreq>weekly</changefreq> +    <priority>0.8</priority> +  </url> +$endfor$ +</urlset> diff --git a/templates/tag.html b/templates/tag.html new file mode 100644 index 0000000..3909f17 --- /dev/null +++ b/templates/tag.html @@ -0,0 +1,4 @@ +<main role="main" class="panel"> +  <h3>$title$</h3> +  $partial("templates/post-list.html")$ +</main>
\ No newline at end of file diff --git a/templates/thumbs.html b/templates/thumbs.html new file mode 100644 index 0000000..91cfd74 --- /dev/null +++ b/templates/thumbs.html @@ -0,0 +1,27 @@ +<div class="thumbs"> +  $for(posts)$ +  <div class="thumb panel"> +    $if(thumbnail)$ +    <div class="thumbnail" style="height: 25vh">$thumbnail$</div> +    <br> +    $endif$ +    <div class="thumb-title"> +      <a href="$url$"> +        <h2>$title$</h2> +        <div style="flex-grow: 1"></div> +        <h3> +          $if(author)$ +          <span>$author$ - </span> +          $endif$ +          <span>$date$</span> +        </h3> +      </a> +    </div> +    $if(subtitle)$ +    <div class="thumb-subtitle"> +      $subtitle$ +    </div> +    $endif$ +  </div> +  $endfor$ +</div>
\ No newline at end of file | 
