summaryrefslogtreecommitdiff
path: root/themes/m10c/layouts/partials/pagination.html
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2020-04-25 16:50:56 -0300
committerRoger Gonzalez <roger@rogs.me>2020-04-25 16:50:56 -0300
commit29d309db5196099982d96933acdc4c0d0ae45436 (patch)
treed05796b60487d2befc2780d35ae1f864eff225c7 /themes/m10c/layouts/partials/pagination.html
Initial commit, migrating from Ghost
Diffstat (limited to 'themes/m10c/layouts/partials/pagination.html')
-rw-r--r--themes/m10c/layouts/partials/pagination.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/m10c/layouts/partials/pagination.html b/themes/m10c/layouts/partials/pagination.html
new file mode 100644
index 0000000..be6fa11
--- /dev/null
+++ b/themes/m10c/layouts/partials/pagination.html
@@ -0,0 +1,27 @@
+{{ with $.Paginator }}
+{{ if gt .TotalPages 1 }}
+<ul class="pagination">
+ {{ with .Prev }}
+ <li class="page-item">
+ <a class="page-link" href="{{ .URL }}">
+ {{ partial "icon.html" (dict "ctx" $ "name" "arrow-left") }}
+ </a>
+ </li>
+ {{ end }}
+ {{ range .Pagers }}
+ <li class="page-item{{ if eq .PageNumber $.Paginator.PageNumber }} active{{ end }}">
+ <a class="page-link" href="{{ .URL }}">
+ {{ .PageNumber }}
+ </a>
+ </li>
+ {{ end }}
+ {{ with .Next }}
+ <li class="page-item">
+ <a class="page-link" href="{{ .URL }}">
+ {{ partial "icon.html" (dict "ctx" $ "name" "arrow-right") }}
+ </a>
+ </li>
+ {{ end }}
+</ul>
+{{ end }}
+{{ end }}