From 48fefb76c0a908cc3fa00abc9c090ce3ac8cb560 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 24 Oct 2021 10:40:45 -0700 Subject: gofiber conversion, index, board posts, board post hooked up --- views/index.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 views/index.html (limited to 'views/index.html') diff --git a/views/index.html b/views/index.html new file mode 100644 index 0000000..f426d5d --- /dev/null +++ b/views/index.html @@ -0,0 +1,53 @@ +
+

{{ .page.Title }}

+

{{ .page.PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.

+ + {{ if .page.Boards }} + {{ $l := len .page.Boards }} +
+
+ {{ if lt $l 2 }} +
Local boards
+ {{ else if eq $l 2 }} +
Local boards
+ {{ else }} +
Local boards
+ {{ end }} + {{ range .page.Boards }} + + {{ end }} + {{ if gt $l 2 }} + {{ range .page.BoardRemainer }} +
+ {{ end }} + {{ end }} +
+
+ {{ end }} + + {{ if .page.NewsItems }} +
+

{{ .page.PreferredUsername }} News

+ {{ range $i, $e := .page.NewsItems }} +
+

{{unixtoreadable $e.Time}} - {{$e.Title}}{{ if $.Board.ModCred }} [Delete] {{end}}

+
+ +

{{$e.Content}}

+
+ {{ end }} +
+ {{ end }} + +
+

Current known instances

+ (always use a proxy) + + {{ range .page.InstanceIndex }} + + + + {{ end }} +
{{ .Id }}
+
+
-- cgit v1.2.3