{{- $theme := "#448aff" -}} {{- if .IsNamedParams -}} {{- $theme = .Get "theme" | default $theme -}} {{- if .Get "url" -}} {{- $url := .Get "url" -}} {{- with dict "Path" $url "Resources" .Page.Resources | partial "function/resource.html" -}} {{- $url = .RelPermalink -}} {{- end -}} {{- $cover := .Get "cover" -}} {{- with dict "Path" $cover "Resources" .Page.Resources | partial "function/resource.html" -}} {{- $cover = .RelPermalink -}} {{- end -}} {{- else if .Get "auto" -}} {{- else -}} {{- end -}} {{- else if (.Get 0 | urls.Parse).Host -}} {{- else -}} {{- end -}} {{- .Page.Scratch.SetInMap "this" "music" true -}}