Adding "mailto" link to a social icon #311
-
I've added an envelope icon in the footer along with other social media icons (i.e., instagram, LinkedIn, Github, etc.). In the
When the site generates, a slash is added to the front of this url so it would create a What do I need to edit and where so that the url generated for this email social icon is simply Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I created a test repo with the Current code: <a href="{{ .URL | relLangURL }}" [...]>
{{ .Pre | safeHTML }}
</a> New code: <a href="{{ .URL }}" [...]>
{{ .Pre | safeHTML }}
</a> |
Beta Was this translation helpful? Give feedback.
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 filelayouts/partial/footer/social.html
renders the social links. I copied the file to the test repo. I suggest to remove therelLangURL
instruction - this is not applicable to external URL's anyways.Current code:
New code: