{{- $schemaType := "SocialMediaPosting" -}} {{- with .replyType -}} {{- $schemaType = . -}} {{- end -}} {{- $replyAuthorType := "Person" -}} {{- with .replyAuthorType -}} {{- $replyAuthorType = . -}} {{- end -}} {{- $replyAuthorRel := "author" -}} {{- if eq $replyAuthorType "Organization" -}} {{- $replyAuthorRel = "publisher" -}} {{- end -}}