From 0b97866be3a15f64170673af9813b39cbc585db5 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 4 Jun 2022 15:12:24 -0700 Subject: archive page works --- views/archive.html | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 views/archive.html (limited to 'views/archive.html') diff --git a/views/archive.html b/views/archive.html new file mode 100644 index 0000000..a5184a4 --- /dev/null +++ b/views/archive.html @@ -0,0 +1,60 @@ +{{ template "partials/top" .page }} + +{{ $board := .page.Board }} + +
+ +
+ +{{ if .page.Posts }} + + + {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} + + {{ end }} + + + + + {{ range $i, $e := .page.Posts }} + {{ if mod $i 2 }} + + {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} + + {{ end }} + + + + + {{ else }} + + {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} + + {{ end }} + + + + + {{ end }} + {{ end }} +
No.Excerpt
[Pop]{{ shortURL $board.Actor.Outbox $e.Id }}{{ shortExcerpt $e }}[View]
[Pop]{{ shortURL $board.Actor.Outbox $e.Id }}{{ shortExcerpt $e }}[View]
+{{ end }} + +
+ + + +
+ +{{ template "partials/bottom" .page }} +{{ template "partials/footer" .page }} +{{ template "partials/general_scripts" .page }} +{{ template "partials/post_scripts" .page }} -- cgit v1.2.3