Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/natarajmb/charaka-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/pager.html')
-rw-r--r--layouts/partials/pager.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/layouts/partials/pager.html b/layouts/partials/pager.html
new file mode 100644
index 0000000..e7b4ef6
--- /dev/null
+++ b/layouts/partials/pager.html
@@ -0,0 +1,44 @@
+<section class="section">
+ <div class="container">
+ <nav class="level is-mobile">
+ <div class="level-left">
+ <div class="level-item">
+ {{ if .Paginator.HasPrev }}
+ <a class="button is-rounded" href="{{ .Paginator.Prev.URL }}">
+ <span class="icon is-small is-marginless">
+ <i class="fa fa-angle-left"></i>
+ </span>
+ Newer
+ </a>
+ {{ else }}
+ <a class="button is-rounded" disabled>
+ <span class="icon is-small is-marginless">
+ <i class="fa fa-angle-left"></i>
+ </span>
+ Newer
+ </a>
+ {{ end }}
+ </div>
+ </div>
+ <div class="level-right is-marginless">
+ <div class="level-item">
+ {{ if .Paginator.HasNext }}
+ <a class="button is-rounded" href="{{ .Paginator.Next.URL }}">
+ Older
+ <span class="icon is-small is-marginless">
+ <i class="fa fa-angle-right"></i>
+ </span>
+ </a>
+ {{ else }}
+ <a class="button is-rounded" disabled>
+ Older
+ <span class="icon is-small is-marginless">
+ <i class="fa fa-angle-right"></i>
+ </span>
+ </a>
+ {{ end }}
+ </div>
+ </div>
+ </nav>
+ </div>
+</section>