{{- if eq .Params.prevnext "true" -}}
Next
{{with .Params.nextlabel}}{{.}}{{end}}
Previous
{{with .Params.prevlabel}}{{.}}{{end}}
{{- end -}}