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

pagination.html « content « partials « layouts - github.com/mmrath/hugo-bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e274e3278c13b62e61e015296393e7d83f854230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ if gt $.Paginator.TotalPages 1 }}
<div class="row ">
    <ul class="pagination">
      {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
          {{ if .Paginator.HasPrev }}
            <li class="page-item">
              <a class="page-link" rel="prev" href="{{ .Site.BaseURL }}{{.Paginator.Prev.URL}}">
                  « Previous
              </a>
            </li>
          {{ end }}
          {{ if .Paginator.HasNext }}
            <li class="page-item">
              <a class="page-link" rel="next" href="{{ .Site.BaseURL }}{{.Paginator.Next.URL}}">
                  Next »
              </a>
            </li>
          {{ end }}
      {{ end }}
    </ul>
</div>
{{ end }}