From a324ba7b649840c16d365b757b19db2849991f11 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 30 Jun 2025 14:48:34 +0200 Subject: WIP --- themes/conspiracy/layouts/_default/baseof.html | 22 ------------------- themes/conspiracy/layouts/_default/list.html | 18 ---------------- themes/conspiracy/layouts/_default/single.html | 23 -------------------- .../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 | 23 ++++++++++++++++++++ themes/conspiracy/layouts/baseof.html | 22 +++++++++++++++++++ themes/conspiracy/layouts/home.html | 25 ++++++++++++++++++++++ themes/conspiracy/layouts/index.html | 25 ---------------------- themes/conspiracy/layouts/list.html | 18 ++++++++++++++++ .../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 | 23 -------------------- themes/conspiracy/layouts/single.html | 23 ++++++++++++++++++++ 18 files changed, 151 insertions(+), 151 deletions(-) delete mode 100644 themes/conspiracy/layouts/_default/baseof.html delete mode 100644 themes/conspiracy/layouts/_default/list.html delete mode 100644 themes/conspiracy/layouts/_default/single.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 create mode 100644 themes/conspiracy/layouts/baseof.html create mode 100644 themes/conspiracy/layouts/home.html delete mode 100644 themes/conspiracy/layouts/index.html create mode 100644 themes/conspiracy/layouts/list.html delete mode 100644 themes/conspiracy/layouts/partials/breadcrumbs.html delete mode 100644 themes/conspiracy/layouts/partials/card.html delete mode 100644 themes/conspiracy/layouts/partials/footer.html delete mode 100644 themes/conspiracy/layouts/partials/head.html delete mode 100644 themes/conspiracy/layouts/partials/header.html create mode 100644 themes/conspiracy/layouts/single.html (limited to 'themes/conspiracy/layouts') diff --git a/themes/conspiracy/layouts/_default/baseof.html b/themes/conspiracy/layouts/_default/baseof.html deleted file mode 100644 index 9557f19..0000000 --- a/themes/conspiracy/layouts/_default/baseof.html +++ /dev/null @@ -1,22 +0,0 @@ - - - {{- 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 deleted file mode 100644 index 02703b4..0000000 --- a/themes/conspiracy/layouts/_default/list.html +++ /dev/null @@ -1,18 +0,0 @@ -{{- 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 deleted file mode 100644 index c7135f8..0000000 --- a/themes/conspiracy/layouts/_default/single.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- define "main" }} - {{- if not .IsHome | and .Title }} -
-

{{ .Title }}

- {{- partial "breadcrumbs.html" . }} - {{- if .Params.Date }} {{ .Date.Format "2006-01-02" }}{{- end }} -
- {{- end }} - {{- if .Params.noindex }} -
- {{- else }} -
- {{- end }} - {{- if .Params.external_links }} - - {{- end }} - {{ .Content }} -
-{{- 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..21eeebf --- /dev/null +++ b/themes/conspiracy/layouts/_partials/card.html @@ -0,0 +1,17 @@ +
+ {{- if .Title }}

{{ .Title }}

{{- end }} + {{- if and .Date (not (isset (index .Ancestors 0).Params "hide_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..adf7aee --- /dev/null +++ b/themes/conspiracy/layouts/_partials/footer.html @@ -0,0 +1,6 @@ +
+ Copyright © {{ now.Year }} {{ site.Copyright }} + {{- range site.Params.footer_links }} + / {{ .name }} + {{- end }} +
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..0b9ea44 --- /dev/null +++ b/themes/conspiracy/layouts/_partials/header.html @@ -0,0 +1,23 @@ + diff --git a/themes/conspiracy/layouts/baseof.html b/themes/conspiracy/layouts/baseof.html new file mode 100644 index 0000000..9557f19 --- /dev/null +++ b/themes/conspiracy/layouts/baseof.html @@ -0,0 +1,22 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} + + + + diff --git a/themes/conspiracy/layouts/home.html b/themes/conspiracy/layouts/home.html new file mode 100644 index 0000000..f865cd3 --- /dev/null +++ b/themes/conspiracy/layouts/home.html @@ -0,0 +1,25 @@ +{{- define "main" }} +
+

{{ .Title }}

+
+
+ {{- if .Content }} +
+ {{ .Content }} +
+ {{- end }} + + {{ range $config := site.Params.homepage_categories }} +

{{ .title }}

+ {{ range $entry := first $config.count (where site.RegularPages "Section" "==" $config.key) }} + {{ partial "card.html" $entry }} + {{ end }} + + + {{ end }} +
+{{- end }} diff --git a/themes/conspiracy/layouts/index.html b/themes/conspiracy/layouts/index.html deleted file mode 100644 index 808ddc8..0000000 --- a/themes/conspiracy/layouts/index.html +++ /dev/null @@ -1,25 +0,0 @@ -{{- define "main" }} -
-

{{ .Title }}

-
-
- {{- if .Content }} -
- {{ .Content }} -
- {{- end }} - - {{- range $config := site.Params.homepage_categories }} -

{{ .title }}

- {{- range $entry := first $config.count (where site.RegularPages "Section" "==" $config.key) }} - {{ partial "card.html" $entry }} - {{- end }} - - - {{- end }} -
-{{- end }} diff --git a/themes/conspiracy/layouts/list.html b/themes/conspiracy/layouts/list.html new file mode 100644 index 0000000..02703b4 --- /dev/null +++ b/themes/conspiracy/layouts/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/partials/breadcrumbs.html b/themes/conspiracy/layouts/partials/breadcrumbs.html deleted file mode 100644 index ff82e73..0000000 --- a/themes/conspiracy/layouts/partials/breadcrumbs.html +++ /dev/null @@ -1,7 +0,0 @@ -{{/* 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 deleted file mode 100644 index 21eeebf..0000000 --- a/themes/conspiracy/layouts/partials/card.html +++ /dev/null @@ -1,17 +0,0 @@ -
- {{- if .Title }}

{{ .Title }}

{{- end }} - {{- if and .Date (not (isset (index .Ancestors 0).Params "hide_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 deleted file mode 100644 index adf7aee..0000000 --- a/themes/conspiracy/layouts/partials/footer.html +++ /dev/null @@ -1,6 +0,0 @@ -
- Copyright © {{ now.Year }} {{ site.Copyright }} - {{- range site.Params.footer_links }} - / {{ .name }} - {{- end }} -
diff --git a/themes/conspiracy/layouts/partials/head.html b/themes/conspiracy/layouts/partials/head.html deleted file mode 100644 index 1196d00..0000000 --- a/themes/conspiracy/layouts/partials/head.html +++ /dev/null @@ -1,10 +0,0 @@ - - - {{ 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 deleted file mode 100644 index 0b9ea44..0000000 --- a/themes/conspiracy/layouts/partials/header.html +++ /dev/null @@ -1,23 +0,0 @@ - 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 }} +
+

{{ .Title }}

+ {{- partial "breadcrumbs.html" . }} + {{- if .Params.Date }} {{ .Date.Format "2006-01-02" }}{{- end }} +
+ {{- end }} + {{- if .Params.noindex }} +
+ {{- else }} +
+ {{- end }} + {{- if .Params.external_links }} + + {{- end }} + {{ .Content }} +
+{{- end }} -- cgit