if or (eq .Params.period_start "latest_release") (eq .Params.link "latest_release") -}}
                        {{- range where .Site.Pages ".Page.Params.release" .Site.Data.args.full_version -}}
                            {{- if not .Page.Params.draft -}}
                                {{- $latest_release = . -}}
                            {{- end -}}
                        {{- end -}}
                    {{- end -}}

                    {{- if and (or (eq .Params.period_start "latest_release") (eq .Pa