From 92e3b5f49f6f5336530988e7839ab3ed283b86e4 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 19 Mar 2023 00:53:31 +0100 Subject: Big site update --- themes/conspiracy/layouts/404.html | 0 themes/conspiracy/layouts/_default/baseof.html | 9 +++++++++ themes/conspiracy/layouts/_default/list.html | 18 ++++++++++++++++++ themes/conspiracy/layouts/_default/single.html | 12 ++++++++++++ themes/conspiracy/layouts/index.html | 22 ++++++++++++++++++++++ .../conspiracy/layouts/partials/breadcrumbs.html | 7 +++++++ themes/conspiracy/layouts/partials/card.html | 17 +++++++++++++++++ themes/conspiracy/layouts/partials/footer.html | 6 ++++++ themes/conspiracy/layouts/partials/head.html | 10 ++++++++++ themes/conspiracy/layouts/partials/header.html | 17 +++++++++++++++++ 10 files changed, 118 insertions(+) create mode 100644 themes/conspiracy/layouts/404.html create mode 100644 themes/conspiracy/layouts/_default/baseof.html create mode 100644 themes/conspiracy/layouts/_default/list.html create mode 100644 themes/conspiracy/layouts/_default/single.html create mode 100644 themes/conspiracy/layouts/index.html create mode 100644 themes/conspiracy/layouts/partials/breadcrumbs.html create mode 100644 themes/conspiracy/layouts/partials/card.html create mode 100644 themes/conspiracy/layouts/partials/footer.html create mode 100644 themes/conspiracy/layouts/partials/head.html create mode 100644 themes/conspiracy/layouts/partials/header.html (limited to 'themes/conspiracy/layouts') diff --git a/themes/conspiracy/layouts/404.html b/themes/conspiracy/layouts/404.html new file mode 100644 index 0000000..e69de29 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 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.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 }} +
+

{{ .Title }}

+ {{- partial "breadcrumbs.html" . }} +
+ {{- end }} +
+ {{- if .Content }} +
+ {{ .Content }} +
+ {{- end }} + {{- range .Pages }} + {{ partial "card.html" . }} + {{- end }} +
+{{- 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 }} +
+

{{ .Title }}

+ {{- partial "breadcrumbs.html" . }} + {{- if .Params.Date }} {{ .Date.Format "2006-01-02" }}{{- end }} +
+ {{- end }} +
+ {{ .Content }} +
+{{- end }} diff --git a/themes/conspiracy/layouts/index.html b/themes/conspiracy/layouts/index.html new file mode 100644 index 0000000..28b5cc5 --- /dev/null +++ b/themes/conspiracy/layouts/index.html @@ -0,0 +1,22 @@ +{{- define "main" }} +
+

{{ .Title }}

+
+
+ {{- if .Content }} +
+ {{ .Content }} +
+ {{- end }} + +

Recently updated projects

+ {{ range first 2 (where site.RegularPages "Section" "==" "projects") }} + {{ partial "card.html" . }} + {{- end }} + +

Blog

+ {{ range (where site.RegularPages "Section" "==" "blog") }} + {{ partial "card.html" . }} + {{- end }} +
+{{- end }} diff --git a/themes/conspiracy/layouts/partials/breadcrumbs.html b/themes/conspiracy/layouts/partials/breadcrumbs.html new file mode 100644 index 0000000..ff82e73 --- /dev/null +++ b/themes/conspiracy/layouts/partials/breadcrumbs.html @@ -0,0 +1,7 @@ +{{/* https://github.com/adityatelange/hugo-PaperMod/blob/master/layouts/partials/breadcrumbs.html */}} + diff --git a/themes/conspiracy/layouts/partials/card.html b/themes/conspiracy/layouts/partials/card.html new file mode 100644 index 0000000..167a9d5 --- /dev/null +++ b/themes/conspiracy/layouts/partials/card.html @@ -0,0 +1,17 @@ +
+ {{- if .Title }}

{{ .Title }}

{{- end }} + {{- if .Date }}{{ .Date.Format "2006-01-02" }}{{- end }} + +
+ {{ .Summary | safeHTML }} + Read more +
+ + {{- if .Params.external_links }} + + {{- end }} +
diff --git a/themes/conspiracy/layouts/partials/footer.html b/themes/conspiracy/layouts/partials/footer.html new file mode 100644 index 0000000..6071d43 --- /dev/null +++ b/themes/conspiracy/layouts/partials/footer.html @@ -0,0 +1,6 @@ + diff --git a/themes/conspiracy/layouts/partials/head.html b/themes/conspiracy/layouts/partials/head.html new file mode 100644 index 0000000..1196d00 --- /dev/null +++ b/themes/conspiracy/layouts/partials/head.html @@ -0,0 +1,10 @@ + + + {{ if .IsHome }}{{ else }}{{ if .Title }}{{ .Title }} | {{ end }}{{ end }}{{ site.Title }} + + + + + {{- $stylesheet := resources.Get "css/style.css" | resources.ExecuteAsTemplate "style.css" . }} + + diff --git a/themes/conspiracy/layouts/partials/header.html b/themes/conspiracy/layouts/partials/header.html new file mode 100644 index 0000000..675f899 --- /dev/null +++ b/themes/conspiracy/layouts/partials/header.html @@ -0,0 +1,17 @@ + -- cgit