mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-09 19:45:14 -05:00
ec4e6f9df2
git-subtree-dir: docs git-subtree-split: f887bd7b4e3e7c7e76cd63951e5b0d37d8fe0ac7
25 lines
777 B
HTML
25 lines
777 B
HTML
{{if .Prev }}
|
|
<a href="{{ .Prev.Permalink }}" class="db-l f4 f3-ns link primary-color hover-black fw8">
|
|
<span class="v-mid dib">{{ partial "svg/ic_chevron_left_black_24px.svg" (dict "size" "30px") }}</span> {{ .Prev.Title }}
|
|
</a>
|
|
{{end}}
|
|
|
|
{{if .Next }}
|
|
<a href="{{.Next.Permalink }}" class="db-l f4 f3-ns link primary-color hover-black fw8">
|
|
{{ .Next.Title }} <span class="v-mid dib">{{ partial "svg/ic_chevron_right_black_24px.svg" (dict "size" "30px") }}</span>
|
|
</a>
|
|
{{end}}
|
|
|
|
|
|
<script>
|
|
document.body.onkeyup = function(e){
|
|
|
|
{{ if .Prev }}
|
|
if (e.keyCode == '37') { window.location = '{{ .Prev.Permalink }}'; }
|
|
{{ end }}
|
|
{{ if .Next }}
|
|
if (e.keyCode == '39') { window.location = '{{.Next.Permalink }}'; }
|
|
{{ end }}
|
|
};
|
|
|
|
</script>
|