summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html7
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/_default/list.html16
-rw-r--r--layouts/_default/single.html10
-rw-r--r--layouts/index.html24
-rw-r--r--layouts/partials/footer.html6
-rw-r--r--layouts/partials/head.html (renamed from layouts/partials/header.html)15
-rw-r--r--layouts/posts/posts.html.html6
8 files changed, 74 insertions, 21 deletions
diff --git a/layouts/404.html b/layouts/404.html
index e69de29..2b9a6ec 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -0,0 +1,7 @@
+{{ partial "head" . }}
+
+<header>
+ <a href="/"><img id="logo" src="/img/giraffe.svg" /></a>
+<h1>404</h1>
+</header>
+{{ partial "footer" . }}
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
deleted file mode 100644
index 5f8e2ec..0000000
--- a/layouts/_default/baseof.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html>
- {{- partial "head.html" . -}}
- <body>
- {{- partial "header.html" . -}}
- <div id="content">
- {{- block "main" . }}{{- end }}
- </div>
- {{- partial "footer.html" . -}}
- </body>
-</html>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e69de29..e69e3bf 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -0,0 +1,16 @@
+{{ partial "head" . }}
+<main>
+
+ {{ .Content }}
+ <ul class="contents">
+ {{ range .Paginator.Pages }}
+ <li>{{.Title}}
+ <div>
+ {{ .Summary }}
+ </div>
+ </li>
+ {{ end }}
+ </ul>
+
+</main>
+{{ partial "footer" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e69de29..37bc22c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -0,0 +1,10 @@
+{{ partial "head" . }}
+<main>
+ <article>
+ <h1>{{ .Title }}</h1>
+ <span class="single-date">{{ .Date.Format "January 2, 2006" }}</span>
+
+{{ .Content }}
+ </article>
+</main>
+{{ partial "footer" . }}
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" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index f5562b7..8dba16b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,4 +1,4 @@
-
- </main>
-</body>
+ <footer>
+ {{ .Site.Copyright }}
+ </footer>
</html>
diff --git a/layouts/partials/header.html b/layouts/partials/head.html
index 45614b8..ffd8423 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/head.html
@@ -1,5 +1,6 @@
-<!doctype html>
-<html class="no-js" lang="">
+<!DOCTYPE html>
+
+<html class="no-js" lang="{{ $.Site.LanguageCode | default "en" }}">
<head>
<meta charset="utf-8">
@@ -8,9 +9,13 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" href="css/normalize.css">
- <link rel="stylesheet" href="css/main.css">
+ <link rel="stylesheet" href="/css/normalize.css">
+ <link rel="stylesheet" href="/css/main.css">
</head>
<body>
- <main>
+{{ if not .IsHome }}
+<header>
+ <a href="/"><img id="logofloat" src="/img/giraffe.svg" /></a>
+</header>
+{{ end }}
diff --git a/layouts/posts/posts.html.html b/layouts/posts/posts.html.html
new file mode 100644
index 0000000..4c227df
--- /dev/null
+++ b/layouts/posts/posts.html.html
@@ -0,0 +1,6 @@
+{{ partial "head" . }}
+{{ partial "logo" . }}
+<main>
+ lol
+</main>
+{{ partial "footer" . }}