diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-22 20:37:05 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-22 20:37:05 +0100 |
commit | 0c90ee0f3c1c5a7ca88a028d2bd0d113de61e8a1 (patch) | |
tree | 14fe67c479edef564a063c32ef6376a2a4bb388b /layouts | |
parent | f1dbc28426a61bd8a5c38e4b3ad11ec190071f8b (diff) |
Added forward and back arrows
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/stream/list.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/stream/list.html b/layouts/stream/list.html index 39c2b1e..0249c4f 100644 --- a/layouts/stream/list.html +++ b/layouts/stream/list.html @@ -27,7 +27,7 @@ <hr class="new1"> {{ end }} -<p>Stream navigation:</p> +<p><em>Navigation:</em></p> {{ if $paginator.HasPrev }} <a href="{{ $paginator.Prev.URL }}">←</a> @@ -35,7 +35,11 @@ {{ range $paginator.Pagers }} - <a href="{{ .URL }}">{{ .PageNumber }}</a> + {{ if (eq .PageNumber $paginator.PageNumber) }} + <strong><a href="{{ .URL }}" style="background-color: lightgray; color: black">{{ .PageNumber }}</a></strong> + {{ else }} + <a href="{{ .URL }}">{{ .PageNumber }}</a> + {{ end }} {{ end }} {{ if $paginator.HasNext}} |