Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Absolute email address on Jekyll

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.

like image 858
Sophia Feng Avatar asked Nov 15 '13 00:11

Sophia Feng


2 Answers

The correct Markdown syntax for creating an email links is:

[contact me](mailto:[email protected])
like image 81
rkrv. Avatar answered Dec 01 '22 22:12

rkrv.


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.

like image 24
Sophia Feng Avatar answered Dec 01 '22 22:12

Sophia Feng