Skip to content

Commit

Permalink
Update $.URL to .URL for grid mode
Browse files Browse the repository at this point in the history
Fixes #406

Signed-off-by: Matty Stratton <[email protected]>
  • Loading branch information
mattstratton committed Dec 22, 2023
1 parent 9f30ee5 commit 9a3438a
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 @@ -106,7 +106,7 @@ <h3><a href="{{ .Permalink }}" class= "grid_episode_title">{{ .Title }}</a></h3>
<!-- page # buttons -->
{{ range $pag.Pagers }}
{{ $cur := .PageNumber }}
{{- $url := trim (string $.URL) "/" | absURL -}}
{{- $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>
{{ else if in (slice 2 (sub $total 1)) $cur }}
Expand Down

0 comments on commit 9a3438a

Please sign in to comment.