From ac288d40da3235b9382d685c9958ad167a758bcd Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 31 Jul 2021 11:42:59 -0700 Subject: added archive page and viewing --- static/archive.html | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 static/archive.html (limited to 'static/archive.html') diff --git a/static/archive.html b/static/archive.html new file mode 100644 index 0000000..2b7d69a --- /dev/null +++ b/static/archive.html @@ -0,0 +1,81 @@ +{{ define "header" }} +/{{ .Board.Name }}/ - Archive + + + + + + + + + + + +{{ if (index .Posts 0).Preview }} + + +{{ end }} + + +{{ end }} + +{{ define "top" }} +

/{{ .Board.Name }}/ - {{ .Board.PrefName }}

+

{{ .Board.Summary }}

+

Archived Posts

+{{ end }} + +{{ define "content" }} +{{ $board := .Board }} + +
+ +
+ + + + + + + + {{ range $i, $e := .Posts }} + {{ if mod $i 2 }} + + + + + + {{ else }} + + + + + + {{ end }} + {{ end }} +
No.Excerpt
{{ short $board.Actor.Outbox $e.Id }}{{ shortExcerpt $e }}[View]
{{ short $board.Actor.Outbox $e.Id }}{{ shortExcerpt $e }}[View]
+ +
+
+ +
+
+ +{{ end }} + +{{ define "script" }} + + +{{ end }} -- cgit v1.2.3