Skip to content

Commit

Permalink
Actually fix grid pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstratton committed Nov 25, 2019
1 parent 4a93137 commit 623f4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h2 class = "episode-list-header">All Episodes</h2>
{{ $cur := .PageNumber }}
{{- $url := trim (string $.URL) "/" | absURL -}}
{{ if in ($.Scratch.Get "show") $cur }}
<li class = "{{ if eq . $pag }}active{{ end }} page-item"><a href="{{ $.URL }}" class="page-link hidden-md-down">{{ .PageNumber }}</a></li>
<li class = "{{ if eq . $pag }}active{{ end }} page-item"><a href="{{ .URL }}" class="page-link hidden-md-down">{{ .PageNumber }}</a></li>
{{ else if in (slice 2 (sub $total 1)) $cur }}
<li class="disabled page-item"><a name="" class="page-link hidden-md-down">&hellip;</a></li>
{{ end }}
Expand Down

0 comments on commit 623f4e5

Please sign in to comment.