{{- $params := .Page.Params | merge .Site.Params.Page | merge (dict "author" .Site.Params.Author) -}}
<item>
    <title>
        {{- .Page.Title -}}
    </title>
    <link>
        {{- .Page.Permalink -}}
    </link>
    <pubDate>
        {{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700"  -}}
    </pubDate>
    <author>
      {{- with .Site.Params.Author.email -}}
        {{- . }}{{ with $.Site.Params.Author.name }} ({{ . }}){{ end -}}
      {{- else -}}
        {{- with $.Site.Params.Author.name }}{{