diff options
author | FChannel <> | 2022-06-19 12:47:32 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 16:03:29 -0700 |
commit | b02f813e519dc890f2eb4827ff52cff3ff90c828 (patch) | |
tree | d020fbdefda52542aab3f4250bf93533e9f38504 /static/nposts.html | |
parent | cd99df8d6781c3f0a191d119ea0ddf8c4a16089f (diff) |
v0.1.0
Diffstat (limited to 'static/nposts.html')
-rw-r--r-- | static/nposts.html | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/static/nposts.html b/static/nposts.html deleted file mode 100644 index 336edb6..0000000 --- a/static/nposts.html +++ /dev/null @@ -1,65 +0,0 @@ -{{ define "header" }} -<title>{{ .Title }}</title> -<meta name="description" content="{{ .Board.Summary }}"> -<meta property="og:url" content="{{ .Board.Actor.Id }}"> -<meta property="og:site_name" content="{{ .Instance.PreferredUsername }}" /> - -<meta property="og:title" content="{{ .Title }}"> -<meta property="og:description" content="{{ .Board.Summary }}"> - -<meta name="twitter:title" content="{{ .Title }}"> -<meta name="twitter:description" content="{{ .Board.Summary }}"> -<meta name="twitter:card" content="summary_large_image"> -{{ end }} - -{{ define "content" }} -{{ $board := .Board }} -<hr> -<ul id="navlinks"> - <li>[<a href="/{{ $board.Name }}/catalog">Catalog</a>]</li> - {{ if showArchive }} - <li>[<a href="/{{ $board.Name }}/archive">Archive</a>]</li> - {{ end }} - <li>[<a href="#bottom">Bottom</a>]</li> - <li>[<a href="javascript:location.reload()">Refresh</a>]</li> -</ul> - -{{ template "posts" . }} - -<hr> - -<ul id="navlinks"> - <li>[<a href="/{{ $board.Name }}/catalog">Catalog</a>]</li> - {{ if showArchive }} - <li>[<a href="/{{ $board.Name }}/archive">Archive</a>]</li> - {{ end }} - <li>[<a href="#top" id="bottom">Top</a>]</li> - <li>[<a href="javascript:location.reload()">Refresh</a>]</li> -</ul> - -<hr> -{{ if gt .TotalPage 0 }} -{{ $totalPage := .TotalPage }} -<ul style="float: right; margin: 0; padding: 0; display: inline"> - {{ $page := .CurrentPage }} - {{ if gt $page 0 }} - <li style="display: inline">[<a href="/{{ $board.Name }}?page={{ sub $page 1 }}"><</a>]</li> - {{ end }} - {{ range $i, $e := .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 .CurrentPage .TotalPage }} - <li style="display: inline">[<a href="/{{ $board.Name }}?page={{ add $page 1 }}">></a>]</li> - {{ end }} -</ul> -{{ end }} -{{ end }} - -{{ define "script" }} -<script src="/static/js/posts.js"></script> -<script src="/static/js/footerscript.js"></script> -{{ end }} |