mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2024-11-29 05:23:50 +01:00
Some cleanup
This commit is contained in:
parent
9b04750cf5
commit
e37d635186
|
@ -1,20 +1,8 @@
|
||||||
<div class="pagination">
|
|
||||||
<div class="pagination__buttons">
|
<div class="pagination__buttons">
|
||||||
{{ if .Paginator.HasPrev }}
|
{{ if .Paginator.HasPrev }}
|
||||||
<span class="button prev">
|
<a class="button prev" href="{{ .Paginator.Prev.URL }}"> {{ $.Site.Params.newerPosts | default "Newer posts" }} </a>
|
||||||
<a href="{{ .Paginator.Prev.URL }}">
|
{{ end }}
|
||||||
<span class="button__icon">←</span>
|
{{ if .Paginator.HasNext }}
|
||||||
<span class="button__text">{{ $.Site.Params.newerPosts | default "Newer posts" }}</span>
|
<a class="button next" href="{{ .Paginator.Next.URL }}"> {{ $.Site.Params.olderPosts | default "Older posts" }} </a>
|
||||||
</a>
|
{{ end }}
|
||||||
</span>
|
</div>
|
||||||
{{ end }}
|
|
||||||
{{ if .Paginator.HasNext }}
|
|
||||||
<span class="button next">
|
|
||||||
<a href="{{ .Paginator.Next.URL }}">
|
|
||||||
<span class="button__text">{{ $.Site.Params.olderPosts | default "Older posts" }}</span>
|
|
||||||
<span class="button__icon">→</span>
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,10 +1,8 @@
|
||||||
{{ if or .NextInSection .PrevInSection }}
|
|
||||||
<div class="pagination__buttons">
|
<div class="pagination__buttons">
|
||||||
{{ if .NextInSection }}
|
{{ if .NextInSection }}
|
||||||
<a class="button prev" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }}</a>
|
<a class="button prev" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }}</a>
|
||||||
{{ end }}
|
|
||||||
{{ if .PrevInSection }}
|
|
||||||
<a class="button next" href="{{ .PrevInSection.RelPermalink }}">{{ .PrevInSection.Title }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if .PrevInSection }}
|
||||||
|
<a class="button next" href="{{ .PrevInSection.RelPermalink }}">{{ .PrevInSection.Title }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
Loading…
Reference in a new issue