Browse Source

refactor: relLangURL no longer required in paginator

Hugo's template just uses `.URL`:
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates.autogen.go

See #915
George Cushen 6 năm trước cách đây
mục cha
commit
8a3f75839a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      layouts/partials/pagination.html

+ 2 - 2
layouts/partials/pagination.html

@@ -2,10 +2,10 @@
 <nav>
   <ul class="pagination justify-content-center">
     {{ if .Paginator.HasPrev }}
-    <li class="page-item"><a class="page-link" href="{{ .Paginator.Prev.URL | relLangURL }}">&laquo;</a></li>
+    <li class="page-item"><a class="page-link" href="{{ .Paginator.Prev.URL }}">&laquo;</a></li>
     {{ end }}
     {{ if .Paginator.HasNext }}
-    <li class="page-item"><a class="page-link" href="{{ .Paginator.Next.URL | relLangURL }}">&raquo;</a></li>
+    <li class="page-item"><a class="page-link" href="{{ .Paginator.Next.URL }}">&raquo;</a></li>
     {{ end }}
   </ul>
 </nav>