Skip to content
Snippets Groups Projects
Unverified Commit 678a5fd3 authored by Leon Klingele's avatar Leon Klingele
Browse files

Fix links by removing slash between site.baseurl and post.url

This avoids generating URLs with two leading slashes which results
in unexpected behaviour. Example:

    //2018/01/29/

was converted to

    0.0.7.226/01/29/

Fixes #617
parent 86428839
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@
{% for post in site.posts limit:2 %}
<div class="row start-xs">
<div class="col">
<p><a href="{{site.baseurl}}/{{ post.url }}">{{ post.title }}</a></p>
<p><a href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a></p>
</div>
</div>
{% endfor %}
......
......@@ -119,7 +119,7 @@
{% for post in site.posts limit:2 %}
<div class="row start-xs">
<div class="col">
<p><a href="{{site.baseurl}}/{{ post.url }}">{{ post.title }}</a></p>
<p><a href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a></p>
</div>
</div>
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment