Merge pull request #1718 from thomasdao/master

Add docs for post_url when posts are in subdirectory
This commit is contained in:
Matt Rogers 2013-11-22 18:31:09 -08:00
commit 249642733b
1 changed files with 9 additions and 0 deletions

View File

@ -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: