I am attempting to provide links in my Jekyll _posts that do not follow the https protocol. Currently when clicking on the links provided in my posts https:// is added to all URLs and this is causing protocol errors with any links not following the https protocol.
Here is how I am currently adding my _posts links to my website:
{% if post.website %}
<li>View Website at:
<strong>
<a href="//{{ post.website }}" target=_blank>{{ post.websitename }}</a>
</strong>
</li>
{% endif %}
I have read that the browser will always use whatever the current protocol is and adding //
to the front of any link should fix this. I attempted to add //
to the link in the post itself, and directly to the html as shown above, neither of these fixes have worked for me.