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