Skip to content

Commit

Permalink
Fix: change some .RelPermalink back to .URL
Browse files Browse the repository at this point in the history
  • Loading branch information
qqpann committed Oct 9, 2019
1 parent efa5369 commit a015ab2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h3>{{ .Title }}</h3>
<div class="pagination">
<ul>
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.RelPermalink }}" class="previous_page">Prev</a>
<a href="{{ .Paginator.Prev.URL }}" class="previous_page">Prev</a>
{{ else }}
<span class="previous_page disabled">Prev</span>
{{ end }}
Expand All @@ -40,7 +40,7 @@ <h3>{{ .Title }}</h3>
{{ end }}

{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.RelPermalink }}" class="next_page">Next</a>
<a href="{{ .Paginator.Next.URL }}" class="next_page">Next</a>
{{ else }}
<span class="next_page disabled">Next</span>
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/paginator.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="pagination">
<ul>
{{ if $pag.HasPrev }}
<a href="{{ $pag.Prev.RelPermalink }}" class="previous_page">Prev</a>
<a href="{{ $pag.Prev.URL }}" class="previous_page">Prev</a>
{{ else }}
<span class="previous_page disabled">Prev</span>
{{ end }}
Expand Down Expand Up @@ -33,7 +33,7 @@
{{ end }}

{{ if $pag.HasNext }}
<a href="{{ $pag.Next.RelPermalink }}" class="next_page">Next</a>
<a href="{{ $pag.Next.URL }}" class="next_page">Next</a>
{{ else }}
<span class="next_page disabled">Next</span>
{{ end }}
Expand Down

0 comments on commit a015ab2

Please sign in to comment.