blob: 0a1ba18d3d2a9e5b0914edea3cb80c8519722a9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<div style="text-align: center; max-width: 800px; margin: 0 auto;">
<h1>{{ .page.Title }}</h1>
<p style="text-align: justify">{{ .page.PreferredUsername }} is a federated image board based on <a href="https://activitypub.rocks/">ActivityPub</a>. 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: <a href="https://github.com/FChannel0">https://github.com/FChannel0</a>. Current known instances can be found <a href="https://fchannel.org/instance-index.html">here</a>.</p>
{{ if .page.Boards }}
{{ $l := len .page.Boards }}
<div style="margin-top:50px;">
<div id="boardGrid">
{{ if lt $l 2 }}
<div id="boardGridHeader"><span style="font-size: 1.5em;font-weight: bold;">Local boards</span></div>
{{ else if eq $l 2 }}
<div id="boardGridHeader" style="grid-column: 1 / 3;"><span style="font-size: 1.5em;font-weight: bold;">Local boards</span></div>
{{ else }}
<div id="boardGridHeader" style="grid-column: 1 / 4;"><span style="font-size: 1.5em;font-weight: bold;">Local boards</span></div>
{{ end }}
{{ range .page.Boards }}
<div class="boardGridCell"><a href="{{.Location}}"><b>/{{.Name}}/</b> - {{.PrefName}} {{ if not .Restricted }} [NSFW] {{ end }}</a></div>
{{ end }}
{{ if gt $l 2 }}
{{ range .page.BoardRemainer }}
<div class="boardGridCell"></div>
{{ end }}
{{ end }}
</div>
</div>
{{ end }}
{{ if .page.NewsItems }}
<div class="newsbox" style="margin-top:50px;">
<h2><a href="/news">{{ .page.PreferredUsername }} News</a></h2>
{{ $page := .page }}
{{ range $i, $e := .page.NewsItems }}
<div class="newsbox-news">
<h3><a href="/news/{{.Time}}">{{unixtoreadable $e.Time}} - {{$e.Title}}</a>{{ if $page.Board.ModCred }} <a href="/{{ $page.Key }}/newsdelete/{{ $e.Time }}">[Delete] </a>{{end}}</h3>
<br>
<p>{{$e.Content}}</p>
</div>
{{ end }}
</div>
{{ end }}
</div>
{{ template "partials/footer" .page }}
{{ template "partials/general_scripts" .page }}
|