diff options
author | tdro <tdro@noreply.example.com> | 2023-05-02 18:18:44 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-05-02 18:18:44 -0400 |
commit | 95d0cf887535137b9f0b04dce166b294db914b03 (patch) | |
tree | 8be4f0b7d7fd36856d5f1dd168553b93835dbc9e /themes/default/layouts/_default/home.archives.html | |
parent | 9544fa0c00aec79bff38f43bbdd8fc2ab80f0557 (diff) | |
download | canory-95d0cf887535137b9f0b04dce166b294db914b03.tar.gz canory-95d0cf887535137b9f0b04dce166b294db914b03.tar.bz2 canory-95d0cf887535137b9f0b04dce166b294db914b03.zip |
themes/default/layouts: Squash history + records -> archives0.11.12
That was as interesting experiment..
Diffstat (limited to 'themes/default/layouts/_default/home.archives.html')
-rw-r--r-- | themes/default/layouts/_default/home.archives.html | 57 |
1 files changed, 57 insertions, 0 deletions
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" }} +<style> + {{ partial "styles-navigator.html" (dict "Link" "/archives/messages/") | safeCSS }} +</style> +{{ 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" . -}} + + <archive-list> + <item-list> + {{ range (.Paginator.Pages.GroupByDate "2006") }} + {{ range (first 1 .Pages) }} + <h1>{{ .Date.Format "2006" }}</h1> + {{ end }} + <ul> + {{ range .Pages }} + <li> + <a + title="{{ partial "meta-title.html" . }}" + href="{{ .RelPermalink }}#{{ partial "card-id.html" . }}" + > + <span> + <code title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}">{{ .Date.Format "02 Jan" }}</code> + </span> + <span>{{ partial "meta-title.html" . }}</span> + <span>@{{ $author.user }}</span> + </a> + </li> + {{ end }} + </ul> + {{ end }} + </item-list> + </archive-list> + + {{ partial "pagination.html" . }} + +{{ end }} + +{{ define "right" }} + {{- partial "navigator-right.html" . -}} +{{ end }} |