mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-07-22 06:21:55 +00:00
Make sure next page stays on right side
This commit is contained in:
parent
0913ca0406
commit
f38f7cc3eb
@ -10,18 +10,22 @@
|
||||
|
||||
{{- if or $prev $next }}
|
||||
<div class="flex flex-wrap justify-between">
|
||||
<span>
|
||||
{{ with $prev }}
|
||||
<a href="{{ .RelPermalink }}" class="flex align-center float-left book-icon">
|
||||
<a href="{{ .RelPermalink }}" class="flex align-center book-icon">
|
||||
<img src="{{ "svg/backward.svg" | relURL }}" alt="Previous" title="{{ partial "docs/title" . }}" />
|
||||
<span>{{ partial "docs/title" . }}</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
<span>
|
||||
{{ with $next }}
|
||||
<a href="{{ .RelPermalink }}" class="flex align-center float-right book-icon">
|
||||
<a href="{{ .RelPermalink }}" class="flex align-center book-icon">
|
||||
<span>{{ partial "docs/title" . }}</span>
|
||||
<img src="{{ "svg/forward.svg" | relURL }}" alt="Next" title="{{ partial "docs/title" . }}" />
|
||||
</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
</div>
|
||||
{{ end -}}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user