mirror of
https://github.com/monero-project/monero-site.git
synced 2024-12-14 04:16:35 +02: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
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user