Skip to content

Adding "mailto" link to a social icon #311

Discussion options

You must be logged in to vote

I created a test repo with the mailto link. I could not reproduce the error, however, I did find some code that might cause your issue. The file layouts/partial/footer/social.html renders the social links. I copied the file to the test repo. I suggest to remove the relLangURL instruction - this is not applicable to external URL's anyways.

Current code:

<a href="{{ .URL | relLangURL }}" [...]>
    {{ .Pre | safeHTML }}
</a>

New code:

<a href="{{ .URL }}" [...]>
    {{ .Pre | safeHTML }}
</a>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tobythesharpeagle
Comment options

@markdumay
Comment options

Answer selected by tobythesharpeagle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants