{{- $params := .Page.Params | merge .Site.Params.Page | merge (dict "author" .Site.Params.Author.name) -}}
{{- $image := $params.featuredImagePreview | default $params.featuredImage -}}
{{- with .Page.Resources.GetMatch (printf "%s" ($image)) -}}
    {{- $image = .RelPermalink -}}
{{- end -}}
{{- with .Page.Resources.GetMatch "featured-image" -}}
    {{- $image = .RelPermalink -}}
{{- end -}}
{{- with .Page.Resources.GetMatch "featured-image-preview" -}}
    {{- $image = .RelPermalink -}}
{{- end -}}
<item>