Look: Terminal theme (panr/hugo-theme-terminal v4.2.6), adapted to the museum
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
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
{{/* page links for a paginator; nothing when there is a single page */}}
|
||||
{{/* page links for a paginator, in the theme's markup; nothing when there is a single page */}}
|
||||
{{ if gt .TotalPages 1 }}
|
||||
<nav class="pager" aria-label="Pages" data-pagefind-ignore>
|
||||
{{ if .HasPrev }}<a href="{{ .Prev.URL }}" rel="prev">← Newer</a>{{ end }}
|
||||
{{ $current := .PageNumber }}
|
||||
{{ range .Pagers }}
|
||||
{{ if eq .PageNumber $current }}<span class="current" aria-current="page">{{ .PageNumber }}</span>
|
||||
{{ else }}<a href="{{ .URL }}">{{ .PageNumber }}</a>{{ end }}
|
||||
{{ end }}
|
||||
{{ if .HasNext }}<a href="{{ .Next.URL }}" rel="next">Older →</a>{{ end }}
|
||||
<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 }}
|
||||
|
||||
Reference in New Issue
Block a user