Use site.baseurl before link tag
This commit is contained in:
		
							parent
							
								
									57a6847165
								
							
						
					
					
						commit
						70fae19b88
					
				| 
						 | 
				
			
			@ -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 %}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue