For issue #1714: Add documentation for post_url when posts are in subdirectory
This commit is contained in:
parent
6842148389
commit
386ea77e28
|
@ -290,6 +290,15 @@ will generate the correct permalink URL for the post you specify.
|
|||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
If you organize your posts in subdirectories, you need to include subdirectory
|
||||
path to the post:
|
||||
|
||||
{% highlight text %}
|
||||
{% raw %}
|
||||
{% post_url /subdir/2010-07-21-name-of-post %}
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
There is no need to include the file extension when using the `post_url` tag.
|
||||
|
||||
You can also use this tag to create a link to a post in Markdown as follows:
|
||||
|
|
Loading…
Reference in New Issue