{{ $str := "" }}
{{if .NextInSection}} {{/* For the docs layout, prev/next labels are reversed. */}} {{ if eq .Type "docs" }}{{ $str = "previous" }}{{else}}{{ $str = "next" }}{{end}}
{{ i18n $str }}
{{end}} {{if .PrevInSection}} {{ if eq .Type "docs" }}{{ $str = "next" }}{{else}}{{ $str = "previous" }}{{end}}
{{ i18n $str }}
{{end}}