Closed andreySadomovskiy closed 6 years ago
Added and published. You can now do this:
<a href="mailto:{{ site.email | encode_email }}">{{ site.email | html_encode_email }}</a>
What I am doing wrong?
I have updated plugin: gem update jekyll-email-protect
Updated code as in example <a href="mailto:{{ site.email.sales | encode_email }}">{{ site.email.sales | html_encode_email }}</a>
but href
is encoded and link name not.
I found the reason — Gemfile.lock
Many thanks!
Is it possible to add one more encode format for emails to have possibility to show email link name on HTML page? To encode not only
href
, but link name also.For example: yourname@domain.com