summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/conspiracy/layouts/single.html')
-rw-r--r--themes/conspiracy/layouts/single.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/themes/conspiracy/layouts/single.html b/themes/conspiracy/layouts/single.html
new file mode 100644
index 0000000..c7135f8
--- /dev/null
+++ b/themes/conspiracy/layouts/single.html
@@ -0,0 +1,23 @@
+{{- 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 }}
+ {{- if .Params.noindex }}
+ <main>
+ {{- else }}
+ <main data-pagefind-body>
+ {{- end }}
+ {{- if .Params.external_links }}
+ <div class="links">
+ {{- range .Params.external_links }}
+ <a href="{{ .url | absURL }}">{{ .name }}</a>
+ {{- end }}
+ </div>
+ {{- end }}
+ {{ .Content }}
+ </main>
+{{- end }}