{{ $url := .Get "url" }} {{ $base_url := .Site.BaseURL | urls.Parse}} {{ $base_path := $base_url.Path}} {{ $url_pdf := path.Join $base_path $url}}