mirror of
https://github.com/zopiya/blog.git
synced 2025-11-03 20:16:47 +08:00
Add initial theme assets, layouts, and configuration for Hugo site
This commit is contained in:
23
themes/typo/layouts/partials/pagination-controls.html
Normal file
23
themes/typo/layouts/partials/pagination-controls.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{ if gt .TotalPages 1 }}
|
||||
<div class="pagination">
|
||||
<div class="pagination-control">
|
||||
{{ if .HasPrev }}
|
||||
<a href="{{ .Prev.URL | absURL }}">
|
||||
prev
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="page-number">
|
||||
<p>
|
||||
{{ .PageNumber }}/{{ .TotalPages }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="pagination-control">
|
||||
{{ if .HasNext }}
|
||||
<a href="{{ .Next.URL | absURL }}">
|
||||
next
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user