aboutsummaryrefslogtreecommitdiff
path: root/static/index.html
blob: de06c6c2f85e02454d19ff83e0922d8ace0a054c (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{{ 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 the server is still a work in progress, 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 the server is still a work in progress, 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 the server is still a work in progress, 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 activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code <a href="https://github.com/FChannel0">here</a>.</p>
  
  <div style="margin-top:50px;">
  <table align="center" style="text-align: left;">
    <th>
      <tr>Local boards</tr>
    </th>

    {{ range .Boards }}
    <tr>
      <td><a href="{{.Location}}">{{.Name}} - {{.PrefName}}</a></td>
    </tr>
    {{ end }}
  </table>
  </div>
  
  <div style="margin-top:50px;">
  <table align="center" style="text-align: left;">
    <th>
      <tr>{{ .PreferredUsername }} news</tr>
    </th>

    {{ range .NewsItems }}
    <tr>
      <td><p><em><b>{{.Time}} - {{.Title}}</b></em><br>{{.Content}}</p></td>
    </tr>
    {{ end }}
  </table>
  </div>
  
  <div style="margin-top:50px;">
  <table align="center" style="text-align: left;">
    <th>
      <tr>Current known instances</tr>
    </th>

    {{ range .InstanceIndex }}
    <tr>
      <td><a href="{{ .Id }}">{{ .Id }}</a></td>
    </tr>
    {{ end }}
  </table>
  </div>
</div>
{{ end }}
{{ define "bottom" }}{{ end }}

{{ define "script" }}
{{ end }}