{{ if ne $.Site.Params.hugoenv "production" }} {{ $targetURL := $.Permalink }} {{ if $.Site.IsServer }} {{ $targetRelURL := ($.Page.Permalink | absURL) }} {{ $targetURL = delimit (slice $.Site.Params.stagingURL $targetRelURL) "" }} {{ end }} Development