templates.md: {% link %} tag only accepts collection documents
Remove examples of pages/static file links until it's released. #5182 #5199
This commit is contained in:
parent
50854d2f76
commit
ab4abb1933
|
@ -460,7 +460,9 @@ numbers from the highlighted code.
|
||||||
|
|
||||||
### Link
|
### Link
|
||||||
|
|
||||||
If you would like to include a link to a collection's document, a post, a page or a file the `link` tag will generate the correct permalink URL for the path you specify.
|
If you would like to include a link to a collection's document, or a post
|
||||||
|
the `link` tag will generate the correct permalink URL for the path you
|
||||||
|
specify.
|
||||||
|
|
||||||
You must include the file extension when using the `link` tag.
|
You must include the file extension when using the `link` tag.
|
||||||
|
|
||||||
|
@ -468,8 +470,6 @@ You must include the file extension when using the `link` tag.
|
||||||
{% raw %}
|
{% raw %}
|
||||||
{% link _collection/name-of-document.md %}
|
{% link _collection/name-of-document.md %}
|
||||||
{% link _posts/2016-07-26-name-of-post.md %}
|
{% link _posts/2016-07-26-name-of-post.md %}
|
||||||
{% link news/index.html %}
|
|
||||||
{% link /assets/files/doc.pdf %}
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
@ -479,11 +479,12 @@ You can also use this tag to create a link in Markdown as follows:
|
||||||
{% raw %}
|
{% raw %}
|
||||||
[Link to a document]({% link _collection/name-of-document.md %})
|
[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 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 %})
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
Support for static files and pages is coming in a later release but is
|
||||||
|
**not** released as of v3.2.1.
|
||||||
|
|
||||||
### Post URL
|
### Post URL
|
||||||
|
|
||||||
If you would like to include a link to a post on your site, the `post_url` tag
|
If you would like to include a link to a post on your site, the `post_url` tag
|
||||||
|
|
Loading…
Reference in New Issue