{{ $parsedUrl := urls.Parse .Site.BaseURL }} {{ $domain := $parsedUrl.Host }} {{ $domainWithoutWWW := replace $domain "www." "" }}