{{- $schemaType := "SocialMediaPosting" -}} {{- with .replyType -}} {{- $schemaType = . -}} {{- end -}} {{- $replyAuthorType := "Person" -}} {{- with .replyAuthorType -}} {{- $replyAuthorType = . -}} {{- end -}} {{- $replyAuthorRel := "author" -}} {{- if in $replyAuthorType (slice "Organization" "NewsMediaOrganization") -}} {{- $replyAuthorRel = "publisher" -}} {{- end -}}