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