{{- $ver := .Params.v -}} {{- with page.Params.version -}} {{- if eq $ver . -}} [Changed in this version] {{- end -}} {{- else -}} [Changed in v{{ $ver }}] {{- end -}}