{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/3926","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/3926/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/3926/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/3926/events","html_url":"https://github.com/jekyll/jekyll/issues/3926","id":102417037,"number":3926,"title":"{% post_url %} not working with subdirectory","user":{"login":"kateklemp","id":8364647,"avatar_url":"https://avatars.githubusercontent.com/u/8364647?v=3","gravatar_id":"","url":"https://api.github.com/users/kateklemp","html_url":"https://github.com/kateklemp","followers_url":"https://api.github.com/users/kateklemp/followers","following_url":"https://api.github.com/users/kateklemp/following{/other_user}","gists_url":"https://api.github.com/users/kateklemp/gists{/gist_id}","starred_url":"https://api.github.com/users/kateklemp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kateklemp/subscriptions","organizations_url":"https://api.github.com/users/kateklemp/orgs","repos_url":"https://api.github.com/users/kateklemp/repos","events_url":"https://api.github.com/users/kateklemp/events{/privacy}","received_events_url":"https://api.github.com/users/kateklemp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jekyll/jekyll/labels/Bug","name":"Bug","color":"d41313"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-21T16:37:02Z","updated_at":"2015-11-04T08:47:25Z","closed_at":null,"body":"I'm getting this error when presumably using the correct format for the tag.\r\n\r\n```\r\nLiquid Exception: Could not find post \"/recipes/2015-07-08-overnight-oats-recipe\" in tag 'post_url'. Make sure the post exists and the name is correct. in blogs/_posts/2015-07-01-coconut-milk.md\r\njekyll 2.5.3 | Error:  Could not find post \"/recipes/2015-07-08-overnight-oats-recipe\" in tag 'post_url'.\r\n\r\nMake sure the post exists and the name is correct.\r\n```\r\n\r\nHere's my code:\r\n```\r\nI put it in smoothies, [overnight oats]({% post_url /recipes/2015-07-08-overnight-oats-recipe %})\r\n```\r\n\r\nHere's my directory structure:\r\n```\r\n- blogs/\r\n-- _posts/\r\n--- 2015-07-01-coconut-milk.md\r\n- recipes/\r\n-- _posts/\r\n--- 2015-07-08-overnight-oats-recipe.md\r\n```\r\n\r\nIs it possible that because I'm referencing from within one subdirectory, it won't find the other?  It works if I don't include the subdirectory, but that precludes me having a blog post and recipe on the same day with the same name (which is how this issue originally arose - wanting to post a blog & recipe on the same day with the same topic, and linking using the subdirectory)."},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/153640475","html_url":"https://github.com/jekyll/jekyll/issues/3926#issuecomment-153640475","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/3926","id":153640475,"user":{"login":"parkr","id":237985,"avatar_url":"https://avatars.githubusercontent.com/u/237985?v=3","gravatar_id":"","url":"https://api.github.com/users/parkr","html_url":"https://github.com/parkr","followers_url":"https://api.github.com/users/parkr/followers","following_url":"https://api.github.com/users/parkr/following{/other_user}","gists_url":"https://api.github.com/users/parkr/gists{/gist_id}","starred_url":"https://api.github.com/users/parkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkr/subscriptions","organizations_url":"https://api.github.com/users/parkr/orgs","repos_url":"https://api.github.com/users/parkr/repos","events_url":"https://api.github.com/users/parkr/events{/privacy}","received_events_url":"https://api.github.com/users/parkr/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T08:47:25Z","updated_at":"2015-11-04T08:47:25Z","body":"> In other words {% post_url date-post %} should look for posts in _posts and its (direct or indirect) subdirectory while {% post_url dir/date-post %} should search dir/_posts and its (direct or indirect) subdirectories. Is this reasonable?\r\n\r\nThat's a good place to start, yes. We can think about subdirectories later (e.g. _posts/dir)"}}