From 59e1226bfb0801c723f112a7c606d6d6f6fc09fb Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 10 Apr 2019 20:01:29 +0200 Subject: settling on design, adding giraffe, fixing css --- layouts/404.html | 7 +++++++ layouts/_default/baseof.html | 11 ----------- layouts/_default/list.html | 16 ++++++++++++++++ layouts/_default/single.html | 10 ++++++++++ layouts/index.html | 24 ++++++++++++++++++++++-- layouts/partials/footer.html | 6 +++--- layouts/partials/head.html | 21 +++++++++++++++++++++ layouts/partials/header.html | 16 ---------------- layouts/posts/posts.html.html | 6 ++++++ 9 files changed, 85 insertions(+), 32 deletions(-) delete mode 100644 layouts/_default/baseof.html create mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header.html create mode 100644 layouts/posts/posts.html.html (limited to 'layouts') 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" . }} + +
+ +

404

+
+{{ 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 @@ - - - {{- partial "head.html" . -}} - - {{- partial "header.html" . -}} -
- {{- block "main" . }}{{- end }} -
- {{- partial "footer.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" . }} +
+ + {{ .Content }} + + +
+{{ 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" . }} +
+
+

{{ .Title }}

+ {{ .Date.Format "January 2, 2006" }} + +{{ .Content }} +
+
+{{ 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" . }} -

Hello world! This is HTML5 Boilerplate.

+{{ partial "head" . }} + +
+ +

dnns.no

+
+
+

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.

+ +
+

Archive

+ {{ range (where .Data.Pages "Type" "post").GroupByDate "2006" }} +

{{ .Key }}

+ {{ range .Pages }} + + {{ end }} + {{ end }} +
+
{{ 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 @@ - - - + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..ffd8423 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,21 @@ + + + + + + + + {{ .Title }} {{ if ne .Title .Site.Title }} · {{ .Site.Title }}{{ end }} + + + + + + + + +{{ if not .IsHome }} +
+ +
+{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index 45614b8..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - {{ .Title }} {{ if ne .Title .Site.Title }} · {{ .Site.Title }}{{ 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" . }} +
+ lol +
+{{ partial "footer" . }} -- cgit v1.2.3