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
This commit is contained in:
Leon Klingele 2018-02-26 00:36:09 +01:00
parent 8642883922
commit 678a5fd3ba
No known key found for this signature in database
GPG Key ID: 83AEC0FEBAA5D483
2 changed files with 2 additions and 2 deletions

View File

@ -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 %}

View File

@ -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 %}