diff options
author | tdro <tdro@noreply.example.com> | 2022-08-15 22:37:43 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-15 22:37:43 -0400 |
commit | 59024e55e1dea279b8acad3a9a8d2403c8bf3028 (patch) | |
tree | 168e8dc90946d773a7f6f862b6c51d6fe3328061 /themes/default/layouts/_default/home.history.html | |
parent | 93624424bf16c2b97e98f8a5c5483d55f0a5023b (diff) | |
download | canory-59024e55e1dea279b8acad3a9a8d2403c8bf3028.tar.gz canory-59024e55e1dea279b8acad3a9a8d2403c8bf3028.tar.bz2 canory-59024e55e1dea279b8acad3a9a8d2403c8bf3028.zip |
config: Use route names in output format labels
Easier search.
Diffstat (limited to 'themes/default/layouts/_default/home.history.html')
-rw-r--r-- | themes/default/layouts/_default/home.history.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/themes/default/layouts/_default/home.history.html b/themes/default/layouts/_default/home.history.html new file mode 100644 index 0000000..03afa5c --- /dev/null +++ b/themes/default/layouts/_default/home.history.html @@ -0,0 +1,48 @@ +{{ define "title" }}Message History — {{ 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" "History" + "Subtitle" (partial "count-total-messages.html" .) + "Icon" "arrow-left" + "IconLabel" "Back" + "Href" "/" + "Id" "back" + "Context" . + ) +}} + +<message-archive> + <item-list> + {{ $type := (partial "author-user.html" .) }} + {{ range (.Site.RegularPages.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>{{ .Date.Format "02 Jan" }}</code></span> + <span>{{ partial "meta-title.html" . }}</span> + <span>@{{ partial "author-user.html" . }}</span> + </a> + </li> + {{ end }} + </ul> + {{ end }} + </item-list> +</message-archive> +{{ end }} + +{{ define "right" }} + {{- partial "navigator-right.html" . -}} +{{ end }} |