{{ $configFile := "" }} {{ $sectionPath := "" }} {{ if .IsSection }} {{ $sectionPath = .RelPermalink }} {{ else }} {{ $parentPage := .Parent }} {{ $sectionPath = $parentPage.RelPermalink }} {{ end }} {{ $sectionName := path.Base $sectionPath }} {{ $configFile = print "/data/" $sectionName "/config.json" | urlize }} {{ $browserURL := print (relURL "genome-browser/") "?config=" $configFile }}