-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnextprev.html
More file actions
26 lines (25 loc) · 1.4 KB
/
nextprev.html
File metadata and controls
26 lines (25 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{ if eq .Page.Kind "page" }}
{{ if gt .Page.Weight 0 }}
<hr />
<div class="row" style="margin: 25px !important;">
{{ with .Site.Pages.ByWeight.Next .}}
<div class="col">
<a href="{{ .Permalink }}" title="{{ .Title }}" class="btn btn-outline-secondary btn-sm" role="button" aria-pressed="true">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-skip-start-fill" viewBox="0 0 16 16">
<path d="M4 4a.5.5 0 0 1 1 0v3.248l6.267-3.636c.54-.313 1.232.066 1.232.696v7.384c0 .63-.692 1.01-1.232.697L5 8.753V12a.5.5 0 0 1-1 0V4z"></path>
</svg> {{ .Name }}
</a>
</div>
{{ end }}
{{ with .Site.Pages.ByWeight.Prev .}}
<div class="col" style="text-align: right;">
<a href="{{ .Permalink }}" title="{{ .Title }}" class="btn btn-outline-secondary btn-sm" role="button" aria-pressed="true">{{ .Name }}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-skip-end-fill" viewBox="0 0 16 16">
<path d="M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"></path>
</svg>
</a>
</div>
{{ end }}
</div>
{{ end }}
{{ end }}