diff options
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 }} |