From 17bb3b3688912b4a1ef9e918895eb53488f85bea Mon Sep 17 00:00:00 2001
From: breadcat
Date: Fri, 19 Jun 2020 15:45:16 +0100
Subject: Base theme commit
Thats' enough for today
---
themes/Brine/layouts/_default/baseof.html | 60 ++++++++++++++++++++++-----
themes/Brine/layouts/_default/list.html | 6 +++
themes/Brine/layouts/_default/page.html | 10 +++++
themes/Brine/layouts/_default/single.html | 12 ++++++
themes/Brine/layouts/_default/terms.html | 6 +++
themes/Brine/layouts/partials/pagination.html | 6 +++
6 files changed, 89 insertions(+), 11 deletions(-)
create mode 100644 themes/Brine/layouts/_default/page.html
create mode 100644 themes/Brine/layouts/_default/terms.html
create mode 100644 themes/Brine/layouts/partials/pagination.html
(limited to 'themes/Brine')
diff --git a/themes/Brine/layouts/_default/baseof.html b/themes/Brine/layouts/_default/baseof.html
index 5f8e2ec..8e22484 100644
--- a/themes/Brine/layouts/_default/baseof.html
+++ b/themes/Brine/layouts/_default/baseof.html
@@ -1,11 +1,49 @@
-
-
- {{- partial "head.html" . -}}
-
- {{- partial "header.html" . -}}
-
- {{- block "main" . }}{{- end }}
-
- {{- partial "footer.html" . -}}
-
-
+
+
+
+{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Site.Title }} - {{ .Title }}{{ end }}
+
+
+
+
+
+
+
+ {{ block "main" . }}{{ .Content }}{{ end }}
+
diff --git a/themes/Brine/layouts/_default/list.html b/themes/Brine/layouts/_default/list.html
index e69de29..6fc5811 100644
--- a/themes/Brine/layouts/_default/list.html
+++ b/themes/Brine/layouts/_default/list.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+ {{ .Title }}
+
+ {{ range $index, $element := .Paginator.Pages }} - {{ .PublishDate.Format "Jan 2, 2006" }}, {{ .ReadingTime }} min read
+ {{ end }}
{{ partial "pagination.html" $ }}
+ {{ end }}
diff --git a/themes/Brine/layouts/_default/page.html b/themes/Brine/layouts/_default/page.html
new file mode 100644
index 0000000..8c69ad7
--- /dev/null
+++ b/themes/Brine/layouts/_default/page.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+
+
+ {{ .Content }}
+ {{ end }}
diff --git a/themes/Brine/layouts/_default/single.html b/themes/Brine/layouts/_default/single.html
index e69de29..a34f75c 100644
--- a/themes/Brine/layouts/_default/single.html
+++ b/themes/Brine/layouts/_default/single.html
@@ -0,0 +1,12 @@
+{{ define "main" }}
+
+
+ {{ .Content }}
+ {{ end }}
diff --git a/themes/Brine/layouts/_default/terms.html b/themes/Brine/layouts/_default/terms.html
new file mode 100644
index 0000000..1b64a66
--- /dev/null
+++ b/themes/Brine/layouts/_default/terms.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+ {{ .Title }}
+
+ {{ range .Data.Terms.Alphabetical }} - {{ .Page.Title }} {{ .Count }}
+ {{ end }}
+ {{ end }}
diff --git a/themes/Brine/layouts/partials/pagination.html b/themes/Brine/layouts/partials/pagination.html
new file mode 100644
index 0000000..7ed3bce
--- /dev/null
+++ b/themes/Brine/layouts/partials/pagination.html
@@ -0,0 +1,6 @@
+{{ with $.Paginator }}{{ if gt .TotalPages 1 }}
+ {{ end }}{{ end }}
\ No newline at end of file
--
cgit v1.2.3