<a href="{{ .Destination | safeURL }}"
{{- if or (strings.HasPrefix .Destination "amazon") (strings.HasPrefix .Destination "amzn") }}
rel="nofollow sponsored noopener noreferrer" target="_blank"
{{- else if .Title }}
rel="{{.Title}}"
{{- else if findRE .Destination .Site.BaseURL }}
rel="noopener" target="_blank"
{{- end }}
>{{ .Text | safeHTML }}</a>
So the .Site.BaseURL doesn’t work in this markup the error is
<.Site.BaseURL>: can't evaluate field Site in type goldmark.linkContext
How to fix this?