blob: 9ce120be380e64aa324211526ae17a6d1e0eeefe (
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
|
{{ template "partials/top" .page }}
{{ $board := .page.Board }}
<hr>
<ul id="navlinks">
{{ template "partials/post_nav" .page }}
<li>[<a href="#bottom" id="top">Bottom</a>]</li>
</ul>
{{ template "partials/posts" .page }}
<hr>
<ul id="navlinks">
{{ template "partials/post_nav" .page }}
<li>[<a href="#top" id="bottom">Top</a>]</li>
</ul>
<hr>
{{ if gt .page.TotalPage 0 }}
{{ $totalPage := .page.TotalPage }}
<ul style="float: right; margin: 0; padding: 0; display: inline">
{{ $page := .page.CurrentPage }}
{{ if gt $page 0 }}
<li style="display: inline">[<a href="/{{ $board.Name }}?page={{ sub $page 1 }}"><</a>]</li>
{{ end }}
{{ range $i, $e := .page.Pages }}
{{ if eq $i $page}}
<li style="display: inline">[<a href="/{{ $board.Name }}?page={{ $i }}"><b>{{ $i }}</b></a>]</li>
{{ else }}
<li style="display: inline">[<a href="/{{ $board.Name }}?page={{ $i }}">{{ $i }}</a>]</li>
{{ end }}
{{ end }}
{{ if lt .page.CurrentPage .page.TotalPage }}
<li style="display: inline">[<a href="/{{ $board.Name }}?page={{ add $page 1 }}">></a>]</li>
{{ end }}
</ul>
{{ end }}
{{ template "partials/bottom" .page }}
{{ template "partials/footer" .page }}
{{ template "partials/general_scripts" .page }}
{{ template "partials/post_scripts" .page }}
|