aboutsummaryrefslogtreecommitdiff
path: root/static/index.html
diff options
context:
space:
mode:
authorFChannel <>2022-06-19 12:47:32 -0700
committerFChannel <>2022-06-19 16:03:29 -0700
commitb02f813e519dc890f2eb4827ff52cff3ff90c828 (patch)
treed020fbdefda52542aab3f4250bf93533e9f38504 /static/index.html
parentcd99df8d6781c3f0a191d119ea0ddf8c4a16089f (diff)
v0.1.0
Diffstat (limited to 'static/index.html')
-rw-r--r--static/index.html78
1 files changed, 0 insertions, 78 deletions
diff --git a/static/index.html b/static/index.html
deleted file mode 100644
index d45dd77..0000000
--- a/static/index.html
+++ /dev/null
@@ -1,78 +0,0 @@
-{{ define "header" }}
-<title>{{ .Title }}</title>
-<meta name="description" content="{{ .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.">
-
-<meta property="og:locale" content="en_US" />
-<meta property="og:type" content="website" />
-<meta property="og:url" content="{{ .Board.Domain }}">
-<meta property="og:site_name" content="{{ .Board.Actor.PreferredUsername }}" />
-
-<meta property="og:title" content="{{ .Title }}">
-<meta property="og:description" content="{{ .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.">
-
-<meta name="twitter:title" content="{{ .Title }}">
-<meta name="twitter:description" content="{{ .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.">
-<meta name="twitter:card" content="summary_large_image">
-
-{{ end }}
-
-{{ define "top" }}{{ end }}
-{{ define "content" }}
-<div style="text-align: center; max-width: 800px; margin: 0 auto;">
- <h1>{{ .Title }}</h1>
- <p style="text-align: justify">{{ .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>.</p>
-
- {{ if .Boards }}
- {{ $l := len .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 .Boards }}
- <div class="boardGridCell"><a href="{{.Location}}"><b>/{{.Name}}/</b> - {{.PrefName}} {{ if not .Restricted }} [NSFW] {{ end }}</a></div>
- {{ end }}
- {{ if gt $l 2 }}
- {{ range .BoardRemainer }}
- <div class="boardGridCell"></div>
- {{ end }}
- {{ end }}
- </div>
- </div>
- {{ end }}
-
- {{ if .NewsItems }}
- <div class="newsbox" style="margin-top:50px;">
- <h2><a href="/news">{{ .PreferredUsername }} News</a></h2>
- {{ range $i, $e := .NewsItems }}
- <div class="newsbox-news">
- <h3><a href="/news/{{.Time}}">{{unixtoreadable $e.Time}} - {{$e.Title}}</a>{{ if $.Board.ModCred }} <a href="/{{ $.Key }}/newsdelete/{{ $e.Time }}">[Delete] </a>{{end}}</h3>
- <br>
-
- <p>{{$e.Content}}</p>
- </div>
- {{ end }}
- </div>
- {{ end }}
-
- <div class="box2" style="margin-top:50px;">
- <h4 style="margin-bottom:5px;">Current known instances</h4>
- <span>(always use a proxy)</span>
- <table style="text-align: left; margin: 25px;">
- {{ range .InstanceIndex }}
- <tr>
- <td><a href="{{ .Id }}">{{ .Id }}</a></td>
- </tr>
- {{ end }}
- </table>
- </div>
-</div>
-{{ end }}
-{{ define "bottom" }}{{ end }}
-
-{{ define "script" }}
-{{ end }}