{{/* (dict "baseURL" .Site.BaseURL "bookSection" .Site.Params.BookSection ) */}} {{ $baseURL := "" }} {{ if (hasPrefix .baseURL "//") }} {{ $baseURL = print "http:" .baseURL }} {{ else }} {{ $baseURL = .baseURL }} {{ end }} {{ $docsURL := "" }} {{ $docsPath := default "docs" .bookSection }} {{ if (strings.HasSuffix $baseURL "/") }} {{ $docsURL = print $baseURL $docsPath }} {{ else }} {{ $docsURL = print $baseURL "/" $docsPath }} {{ end }} {{ return $docsURL }}