From 95d0cf887535137b9f0b04dce166b294db914b03 Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 2 May 2023 18:18:44 -0400 Subject: themes/default/layouts: Squash history + records -> archives That was as interesting experiment.. --- themes/default/layouts/_default/home.archives.html | 57 ++++++++++++++++++++++ themes/default/layouts/_default/home.history.html | 57 ---------------------- themes/default/layouts/_default/home.records.html | 52 -------------------- themes/default/layouts/shortcodes/version.html | 2 +- 4 files changed, 58 insertions(+), 110 deletions(-) create mode 100644 themes/default/layouts/_default/home.archives.html delete mode 100644 themes/default/layouts/_default/home.history.html delete mode 100644 themes/default/layouts/_default/home.records.html (limited to 'themes') diff --git a/themes/default/layouts/_default/home.archives.html b/themes/default/layouts/_default/home.archives.html new file mode 100644 index 0000000..370bec0 --- /dev/null +++ b/themes/default/layouts/_default/home.archives.html @@ -0,0 +1,57 @@ +{{ define "title" }}Message Archive — {{ end }} +{{ define "description" }}This page contains an archive of all messages — {{ end }} +{{ define "styles" }} + +{{ end }} + +{{ define "middle" }} + + {{ partial "navigator-middle.html" + (dict + "Title" "Archives" + "Subtitle" (partial "count-total-messages.html" .) + "Icon" "arrow-left" + "IconLabel" "Back" + "Href" "/" + "Id" "back" + "Context" . + ) + }} + + {{- $author := partial "function-authors-data.html" . -}} + + + + {{ range (.Paginator.Pages.GroupByDate "2006") }} + {{ range (first 1 .Pages) }} +

{{ .Date.Format "2006" }}

+ {{ end }} + + {{ end }} +
+
+ + {{ partial "pagination.html" . }} + +{{ end }} + +{{ define "right" }} + {{- partial "navigator-right.html" . -}} +{{ end }} diff --git a/themes/default/layouts/_default/home.history.html b/themes/default/layouts/_default/home.history.html deleted file mode 100644 index 5765826..0000000 --- a/themes/default/layouts/_default/home.history.html +++ /dev/null @@ -1,57 +0,0 @@ -{{ define "title" }}Message History — {{ end }} -{{ define "description" }}This page contains an archive of all messages — {{ end }} -{{ define "styles" }} - -{{ end }} - -{{ define "middle" }} - - {{ partial "navigator-middle.html" - (dict - "Title" "History" - "Subtitle" (partial "count-total-messages.html" .) - "Icon" "arrow-left" - "IconLabel" "Back" - "Href" "/" - "Id" "back" - "Context" . - ) - }} - - {{- $author := partial "function-authors-data.html" . -}} - - - - {{ range (.Paginator.Pages.GroupByDate "2006") }} - {{ range (first 1 .Pages) }} -

{{ .Date.Format "2006" }}

- {{ end }} - - {{ end }} -
-
- - {{ partial "pagination.html" . }} - -{{ end }} - -{{ define "right" }} - {{- partial "navigator-right.html" . -}} -{{ end }} diff --git a/themes/default/layouts/_default/home.records.html b/themes/default/layouts/_default/home.records.html deleted file mode 100644 index 137c673..0000000 --- a/themes/default/layouts/_default/home.records.html +++ /dev/null @@ -1,52 +0,0 @@ -{{ define "title" }}Tags Archive — {{ end }} -{{ define "description" }}This page contains an archive of all tags — {{ end }} -{{ define "styles" }} - -{{ end }} - -{{ define "middle" }} - - {{ partial "navigator-middle.html" - (dict - "Title" "Records" - "Subtitle" (partial "count-tags.html" .) - "Icon" "arrow-left" - "IconLabel" "Back" - "Href" "/" - "Id" "back" - "Context" . - ) - }} - - {{- $author := partial "function-authors-data.html" . -}} - - - - {{ range (.Paginator.Pages.GroupByDate "2006") }} - {{ range (first 1 .Pages) }} -

{{ .Date.Format "2006" }}

- {{ end }} -
    - {{ range .Pages }} -
  • - - {{ .Date.Format "02 Jan" }} - - {{ partial "meta-tags.html" . }} — {{ partial "meta-title.html" . }} - @{{ $author.user }} -
  • - {{ end }} -
- {{ end }} -
-
- - {{ partial "pagination.html" . }} - -{{ end }} - -{{ define "right" }} - {{- partial "navigator-right.html" . -}} -{{ end }} diff --git a/themes/default/layouts/shortcodes/version.html b/themes/default/layouts/shortcodes/version.html index 11e7685..9c028c7 100644 --- a/themes/default/layouts/shortcodes/version.html +++ b/themes/default/layouts/shortcodes/version.html @@ -1,4 +1,4 @@ -{{- $theme := "0.11.11" -}} +{{- $theme := "0.11.12" -}} {{- $generator := "0.108.0" -}} {{- $number := default false (.Get "number" | default (.Get 0)) -}} -- cgit v1.2.3