Theme vendored unmodified in themes/terminal; base, head, header, footer and post templates rewritten in its markup; museum components restyled in assets/css/museum.css. Embedded forum threads follow the same colours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
15 lines
817 B
HTML
15 lines
817 B
HTML
{{/* page links for a paginator, in the theme's markup; nothing when there is a single page */}}
|
|
{{ if gt .TotalPages 1 }}
|
|
<nav class="pagination" aria-label="Pages" data-pagefind-ignore>
|
|
<div class="pagination__buttons">
|
|
{{ if .HasPrev }}<a href="{{ .Prev.URL }}" rel="prev" class="button inline prev">< [<span class="button__text">Newer posts</span>]</a>{{ end }}
|
|
{{ $current := .PageNumber }}
|
|
{{ range .Pagers }}
|
|
{{ if eq .PageNumber $current }}<span class="current" aria-current="page">[{{ .PageNumber }}]</span>
|
|
{{ else }}<a class="button inline" href="{{ .URL }}">{{ .PageNumber }}</a>{{ end }}
|
|
{{ end }}
|
|
{{ if .HasNext }}<a href="{{ .Next.URL }}" rel="next" class="button inline next">[<span class="button__text">Older posts</span>] ></a>{{ end }}
|
|
</div>
|
|
</nav>
|
|
{{ end }}
|