{{ if .Params.pager | default true }} {{ if or .NextInSection .PrevInSection }} {{ $next := .NextInSection }} {{ $prev := .PrevInSection }} {{ if (eq (.Scratch.Get "invert_pager") true) | default .Params.invert_pager | default false }} {{ $next = .PrevInSection }} {{ $prev = .NextInSection }} {{ end }}