summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/conspiracy/layouts/_default')
-rw-r--r--themes/conspiracy/layouts/_default/baseof.html9
-rw-r--r--themes/conspiracy/layouts/_default/list.html18
-rw-r--r--themes/conspiracy/layouts/_default/single.html12
3 files changed, 39 insertions, 0 deletions
diff --git a/themes/conspiracy/layouts/_default/baseof.html b/themes/conspiracy/layouts/_default/baseof.html
new file mode 100644
index 0000000..c4963da
--- /dev/null
+++ b/themes/conspiracy/layouts/_default/baseof.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ {{- block "main" . }}{{- end }}
+ {{- partial "footer.html" . -}}
+ </body>
+</html>
diff --git a/themes/conspiracy/layouts/_default/list.html b/themes/conspiracy/layouts/_default/list.html
new file mode 100644
index 0000000..02703b4
--- /dev/null
+++ b/themes/conspiracy/layouts/_default/list.html
@@ -0,0 +1,18 @@
+{{- define "main" }}
+ {{- if not .IsHome | and .Title }}
+ <header>
+ <h1>{{ .Title }}</h1>
+ {{- partial "breadcrumbs.html" . }}
+ </header>
+ {{- end }}
+ <main class="cards">
+ {{- if .Content }}
+ <div class="intro">
+ {{ .Content }}
+ </div>
+ {{- end }}
+ {{- range .Pages }}
+ {{ partial "card.html" . }}
+ {{- end }}
+ </main>
+{{- end }}
diff --git a/themes/conspiracy/layouts/_default/single.html b/themes/conspiracy/layouts/_default/single.html
new file mode 100644
index 0000000..9f3ff8d
--- /dev/null
+++ b/themes/conspiracy/layouts/_default/single.html
@@ -0,0 +1,12 @@
+{{- define "main" }}
+ {{- if not .IsHome | and .Title }}
+ <header>
+ <h1>{{ .Title }}</h1>
+ {{- partial "breadcrumbs.html" . }}
+ {{- if .Params.Date }} <strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
+ </header>
+ {{- end }}
+ <main>
+ {{ .Content }}
+ </main>
+{{- end }}