{{ $cover := (resources.Get "image/background-dark.jpg").Fill "1400x787" }}
{{- if (fileExists "assets/image/background-dark.svg") -}}
{{ $cover = (resources.Get "image/background-dark.svg") }}
{{- else if (fileExists "assets/image/background-dark.png") -}}
{{ $cover = (resources.Get "image/background-dark.png").Fill "1400x787" }}
{{- end -}}
{{- return $cover -}}
