Files
njump/templates/archive.html
2023-11-05 18:33:08 +01:00

54 lines
1.6 KiB
HTML

<!doctype html>
<html class="theme--default text-lg font-light print:text-base sm:text-xl">
<meta charset="UTF-8" />
<head>
<title>{{.Title}}</title>
{{template "head_common" .HeadCommonPartial}}
</head>
<body
class="mb-16 bg-white text-gray-600 dark:bg-neutral-900 dark:text-neutral-50 print:text-black"
>
{{template "top" .}}
<div
class="mx-auto block px-4 sm:flex sm:items-center sm:justify-center sm:px-0"
>
<div
class="flex w-full max-w-screen-2xl justify-between gap-10 overflow-visible px-4 print:w-full sm:w-11/12 md:w-10/12 lg:w-9/12 lg:gap-48vw"
>
<div
class="relative top-auto flex basis-1/4 items-center self-start sm:sticky sm:top-8 sm:mt-8 sm:items-start"
>
<div class="text-2xl">{{.Title}}</div>
</div>
<div class="w-full break-words break-all print:w-full sm:w-1/2">
<div class="mb-6 leading-5">
<h1 class="text-xl">{{.Title}}</h1>
</div>
<div class="mb-6 leading-5">
{{range $element := .Data }}
<a class="block" href="/{{$.PathPrefix}}{{$element}}">
{{$element}}
</a>
{{end}}
</div>
<div class="flex justify-between">
{{if not (eq .PrevPage 0)}}
<a href="/{{.PaginationUrl}}/{{.PrevPage}}">&lt;&lt; Prev page</a>
{{end}} {{if not (eq .NextPage 0)}}
<a href="/{{.PaginationUrl}}/{{.NextPage}}">Next page &gt;&gt;</a>
</div>
{{end}}
</div>
</div>
</div>
{{template "footer" .}}
</body>
</html>