Use site.baseurl before post_url tag

This commit is contained in:
Ryan Schmidt 2016-11-07 23:29:49 -06:00
parent 70fae19b88
commit 92354fa7fc
1 changed files with 3 additions and 3 deletions

View File

@ -543,7 +543,7 @@ will generate the correct permalink URL for the post you specify.
```liquid ```liquid
{% raw %} {% raw %}
{% post_url 2010-07-21-name-of-post %} {{ site.baseurl }}{% post_url 2010-07-21-name-of-post %}
{% endraw %} {% endraw %}
``` ```
@ -552,7 +552,7 @@ path to the post:
```liquid ```liquid
{% raw %} {% raw %}
{% post_url /subdir/2010-07-21-name-of-post %} {{ site.baseurl }}{% post_url /subdir/2010-07-21-name-of-post %}
{% endraw %} {% endraw %}
``` ```
@ -562,7 +562,7 @@ You can also use this tag to create a link to a post in Markdown as follows:
```liquid ```liquid
{% raw %} {% raw %}
[Name of Link]({% post_url 2010-07-21-name-of-post %}) [Name of Link]({{ site.baseurl }}{% post_url 2010-07-21-name-of-post %})
{% endraw %} {% endraw %}
``` ```