I am creating a cover page. And you can set your email. But that email can be of type content or string. This is because you can use the custom function sensitive() which allows the user to censor information when a flag is set. This means that the content is SOMETIMES censored. But the string can be used in case the user does not want to censor anything at all.
So where is my code that I have tried so far:
if type(author.email) == content {
link("mailto:" + author.email)
} else {
link("mailto:" + author.email)[#author.email]
}
When its not content, it works fine. But I cant get the content working for the life of me.