diff --git a/docs/_docs/templates.md b/docs/_docs/templates.md index 54f914f7..4ae26d2a 100644 --- a/docs/_docs/templates.md +++ b/docs/_docs/templates.md @@ -518,10 +518,10 @@ You must include the file extension when using the `link` tag. ```liquid {% raw %} -{% link _collection/name-of-document.md %} -{% link _posts/2016-07-26-name-of-post.md %} -{% link news/index.html %} -{% link /assets/files/doc.pdf %} +{{ site.baseurl }}{% link _collection/name-of-document.md %} +{{ site.baseurl }}{% link _posts/2016-07-26-name-of-post.md %} +{{ site.baseurl }}{% link news/index.html %} +{{ site.baseurl }}{% link /assets/files/doc.pdf %} {% endraw %} ``` @@ -529,10 +529,10 @@ You can also use this tag to create a link in Markdown as follows: ```liquid {% raw %} -[Link to a document]({% link _collection/name-of-document.md %}) -[Link to a post]({% link _posts/2016-07-26-name-of-post.md %}) -[Link to a page]({% link news/index.html %}) -[Link to a file]({% link /assets/files/doc.pdf %}) +[Link to a document]({{ site.baseurl }}{% link _collection/name-of-document.md %}) +[Link to a post]({{ site.baseurl }}{% link _posts/2016-07-26-name-of-post.md %}) +[Link to a page]({{ site.baseurl }}{% link news/index.html %}) +[Link to a file]({{ site.baseurl }}{% link /assets/files/doc.pdf %}) {% endraw %} ```