Move theme from subrepo into the main repo
the theme is customized for this site so having it as a sub repo dosent make sense
This commit is contained in:
19
themes/hugo-theme-minos/layouts/partials/pagination.html
Normal file
19
themes/hugo-theme-minos/layouts/partials/pagination.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ $pag := $.Paginator }}
|
||||
{{ if gt $pag.TotalPages 1 }}
|
||||
<nav id="page-nav">
|
||||
{{ if $pag.HasPrev }}
|
||||
<a href="{{ $pag.Prev.URL }}" rel="prev" class="extend prev">« {{ T "Prev" }}</a>
|
||||
{{ end }}
|
||||
{{ range $pag.Pagers }}
|
||||
{{ if eq . $pag }}
|
||||
<span class="page-number current">{{ $pag.PageNumber }}</span>
|
||||
{{ else }}
|
||||
<a href="{{ .URL }}">{{ .PageNumber }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $pag.HasNext }}
|
||||
<a href="{{ $pag.Next.URL }}" rel="next" class="extend next">{{ T "Next" }} »</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user