summaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html24
1 files changed, 22 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 6d3b85c..9c9fadc 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,3 +1,23 @@
-{{ partial "header" . }}
- <p>Hello world! This is HTML5 Boilerplate.</p>
+{{ partial "head" . }}
+
+<header>
+ <a href="/"><img id="logo" src="/img/giraffe.svg" /></a>
+<h1>dnns.no</h1>
+</header>
+<main>
+<p>This site contains articles of various quality, and is sort of a private-but-public documentation of various things. Maybe there'll be some "normal" blog-posts at some point as well. Who knows.</p>
+
+<div class="archive">
+ <h2>Archive</h2>
+ {{ range (where .Data.Pages "Type" "post").GroupByDate "2006" }}
+ <h3 class="archive-title">{{ .Key }}</h3>
+ {{ range .Pages }}
+ <article class="list-item">
+ <a href="{{ .Permalink }}" class="list-item-link">{{ .Title }}</a>
+ <span class="list-item-date">{{ .Date.Format "January 2, 2006" }}</span>
+ </article>
+ {{ end }}
+ {{ end }}
+</div>
+</main>
{{ partial "footer" . }}