mirror of
https://github.com/monero-project/monero-site.git
synced 2024-12-25 04:59:38 +00:00
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:
parent
8642883922
commit
678a5fd3ba
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@
|
||||||
{% for post in site.posts limit:2 %}
|
{% for post in site.posts limit:2 %}
|
||||||
<div class="row start-xs">
|
<div class="row start-xs">
|
||||||
<div class="col">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
{% for post in site.posts limit:2 %}
|
{% for post in site.posts limit:2 %}
|
||||||
<div class="row start-xs">
|
<div class="row start-xs">
|
||||||
<div class="col">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue