I am writing the contact page of my blog. When I put the email address in markdown format
[contact me] ([email protected])
Jekyll sees the email address as a relative path and auto-completes it to localhost:4000/[email protected] locally or https://usr.github.com/[email protected] when pushed to github, which leads to an unable-to-find page. In contrast, if the email address is left as it is, the address should be opened by a mail client.
Is there a way to force the email address to be absolute (disable auto-completion) or are there other workarounds?
I searched and didn't find a solution. I'll appreciate your kind help with this problem.
The correct Markdown syntax for creating an email links is:
[contact me](mailto:[email protected])
Just figured out the question with Markdown Documentation. It turns out not to be a jekyll problem but a MarkDown one. I replaced the line
[contact me] ([email protected])
with
<a href="mailto:[email protected]">contact me</a>
and the problem was resolved.
Probably the mailto: link is some common sense but it did trap me for a while.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With