Skip to content

Commit 9d3d3cb

Browse files
authored
docs: use relative_url filter in layouts
1 parent 81788bf commit 9d3d3cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/layouts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This attribute contains a simple string indicating the type of the layout being
2525
{% for post in page.posts %}
2626
<li>
2727
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
28-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
28+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
2929
</li>
3030
{% endfor %}
3131
</ul>
@@ -39,7 +39,7 @@ This attribute contains a simple string indicating the type of the layout being
3939
{% for post in page.posts %}
4040
<li>
4141
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
42-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
42+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
4343
</li>
4444
{% endfor %}
4545
</ul>
@@ -53,7 +53,7 @@ This attribute contains a simple string indicating the type of the layout being
5353
{% for post in page.posts %}
5454
<li>
5555
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
56-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
56+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
5757
</li>
5858
{% endfor %}
5959
</ul>
@@ -67,7 +67,7 @@ This attribute contains a simple string indicating the type of the layout being
6767
{% for post in page.posts %}
6868
<li>
6969
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
70-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
70+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
7171
</li>
7272
{% endfor %}
7373
</ul>

0 commit comments

Comments
 (0)