{{- /* Get schema type. */}} {{- $schemaType := "Article" -}} {{- if (eq .Params.semanticType "contact") -}} {{- $schemaType = "ContactPage" -}} {{- else if (eq .Params.semanticType "about") -}} {{- $schemaType = "AboutPage" -}} {{- else if or (eq .Type "post") (eq .Type "posts") -}} {{- $schemaType = "BlogPosting" -}} {{- end -}} {{- $publisher := site.Params.seo.publisher | default site.Title -}} {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png") -}} {{- $logo = $logo.Resize "96x96" }} {{- $siteAuthorName := "" }} {{- $siteAuthorTwitter := "" }} {{- with site.Params.author }} {{- if reflect.IsMap . }} {{- with .name }} {{- $siteAuthorName = . }} {{- end -}} {{- with .twitter }} {{- $siteAuthorTwitter = . }} {{- end }} {{- else }} {{- $siteAuthorName = . }} {{- end }} {{- end }}