Skip to content

Commit

Permalink
fix in-section pager #58
Browse files Browse the repository at this point in the history
Signed-off-by: weru <[email protected]>
  • Loading branch information
onweru committed Feb 1, 2022
1 parent 19dcf4f commit e9e2d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/pager.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="pager{{ if .Next }}{{ else }} pager_lean{{ end }}">
{{- $searchURL := "/search/" }}
{{ with .Site.RegularPages.Next . }}
{{ with .NextInSection }}
{{ if ne .RelPermalink $searchURL }}
<div class="pager_item prev">
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="prev">
Expand All @@ -10,7 +10,7 @@
{{ end }}
{{ end }}

{{ with .Site.RegularPages.Prev . }}
{{ with .PrevInSection }}
{{ if ne .RelPermalink $searchURL }}
<div class="pager_item next">
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="next">
Expand Down

0 comments on commit e9e2d2c

Please sign in to comment.