aboutsummaryrefslogtreecommitdiff
path: root/views/catalog.html
diff options
context:
space:
mode:
authorFChannel <>2022-04-29 10:36:43 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit5b52d269faa2ce2014d0feba603a2122361cf4eb (patch)
tree0b66338d18add90ccd1d100ffe9bdb1eecc7319d /views/catalog.html
parent3db517715bef6a53225c5c3c06e8fc5fd0bf71e3 (diff)
general layout organization
Diffstat (limited to 'views/catalog.html')
-rw-r--r--views/catalog.html39
1 files changed, 10 insertions, 29 deletions
diff --git a/views/catalog.html b/views/catalog.html
index c70471e..d4ec009 100644
--- a/views/catalog.html
+++ b/views/catalog.html
@@ -1,30 +1,11 @@
-{{ define "header" }}
-<title>/{{ .page.Board.Name }}/ - catalog</title>
-<meta name="description" content="{{ .page.Board.Summary }}">
-<meta property="og:url" content="{{ .page.Board.Actor.Id }}">
-<meta property="og:site_name" content="{{ .page.Instance.PreferredUsername }}" />
-
-<meta property="og:title" content="{{ .page.Title }}">
-<meta property="og:description" content="{{ .page.Board.Summary }}">
-
-<meta name="twitter:title" content="{{ .page.Title }}">
-<meta name="twitter:description" content="{{ .page.Board.Summary }}">
-<meta name="twitter:card" content="summary_large_image">
-
-<script src="/static/js/posts.js"></script>
-{{ end }}
+{{ template "partials/top" .page }}
{{ $board := .page.Board }}
<hr>
<ul id="navlinks">
- <li>[<a href="/{{ $board.Name }}/">Return</a>]</li>
- <!-- TODO: Implement showArchive -->
- <!-- \{\{ 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>
+ <li>[<a href="/{{ .page.Board.Name }}">Return</a>]</li>
+ {{ template "partials/post_nav" .page }}
</ul>
<hr>
@@ -94,16 +75,16 @@
</div>
{{ end }}
</div>
+
<hr>
<ul id="navlinks">
- <li>[<a href="/{{ $board.Name }}/">Return</a>]</li>
- <!-- TODO: Implement showArchive -->
- <!-- \{\{ if showArchive }} -->
- <!-- <li>[<a href="/{{ $board.Name }}/archive">Archive</a>]</li> -->
- <!-- \{\{ end }} -->
- <li>[<a href="#top">Top</a>]</li>
- <li>[<a href="javascript:location.reload()">Refresh</a>]</li>
+ <li>[<a href="/{{ .page.Board.Name }}">Return</a>]</li>
+ {{ template "partials/post_nav" .page }}
</ul>
<hr>
+
+{{ template "partials/footer" .page }}
+{{ template "partials/general_scripts" .page }}
+{{ template "partials/post_scripts" .page }}