diff options
author | FChannel <> | 2022-04-29 10:36:43 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 5b52d269faa2ce2014d0feba603a2122361cf4eb (patch) | |
tree | 0b66338d18add90ccd1d100ffe9bdb1eecc7319d /views/nposts.html | |
parent | 3db517715bef6a53225c5c3c06e8fc5fd0bf71e3 (diff) |
general layout organization
Diffstat (limited to 'views/nposts.html')
-rw-r--r-- | views/nposts.html | 43 |
1 files changed, 9 insertions, 34 deletions
diff --git a/views/nposts.html b/views/nposts.html index ae5a9b6..567b945 100644 --- a/views/nposts.html +++ b/views/nposts.html @@ -1,45 +1,21 @@ -{{ 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 }} - {{ template "partials/top" .page }} {{ $board := .page.Board }} <hr> + <ul id="navlinks"> - <li>[<a href="/{{ $board.Name }}/catalog">Catalog</a>]</li> - <!-- TODO: showArchive function needs to be fixed - \{\{ 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 }}/catalog">Catalog</a>]</li> + {{ template "partials/post_nav" .page }} </ul> {{ template "partials/posts" .page }} <hr> + <ul id="navlinks"> - <li>[<a href="/{{ $board.Name }}/catalog">Catalog</a>]</li> - <!-- TODO: showArchive function needs to be fixed - \{\{ 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> + <li>[<a href="/{{ .page.Board.Name }}/catalog">Catalog</a>]</li> + {{ template "partials/post_nav" .page }} </ul> <hr> @@ -64,7 +40,6 @@ {{ end }} {{ template "partials/bottom" .page }} - -{{ define "scripts" }} -{{ template "partials/postscripts" . }} -{{ end }} +{{ template "partials/footer" .page }} +{{ template "partials/general_scripts" .page }} +{{ template "partials/post_scripts" .page }} |