Merge pull request #1718 from thomasdao/master
Add docs for post_url when posts are in subdirectory
This commit is contained in:
commit
249642733b
|
@ -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