{"action":"opened","issue":{"url":"https://api.github.com/repos/zurb/panini/issues/168","repository_url":"https://api.github.com/repos/zurb/panini","labels_url":"https://api.github.com/repos/zurb/panini/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/zurb/panini/issues/168/comments","events_url":"https://api.github.com/repos/zurb/panini/issues/168/events","html_url":"https://github.com/zurb/panini/issues/168","id":318778836,"number":168,"title":"Macro to differentiate between pages on different paths","user":{"login":"dagostinelli","id":715418,"avatar_url":"https://avatars2.githubusercontent.com/u/715418?v=4","gravatar_id":"","url":"https://api.github.com/users/dagostinelli","html_url":"https://github.com/dagostinelli","followers_url":"https://api.github.com/users/dagostinelli/followers","following_url":"https://api.github.com/users/dagostinelli/following{/other_user}","gists_url":"https://api.github.com/users/dagostinelli/gists{/gist_id}","starred_url":"https://api.github.com/users/dagostinelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagostinelli/subscriptions","organizations_url":"https://api.github.com/users/dagostinelli/orgs","repos_url":"https://api.github.com/users/dagostinelli/repos","events_url":"https://api.github.com/users/dagostinelli/events{/privacy}","received_events_url":"https://api.github.com/users/dagostinelli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T03:38:31Z","updated_at":"2018-04-30T03:38:31Z","closed_at":null,"author_association":"NONE","body":"When there is just one file called `index.html` this works fine:\r\n\r\n```\r\n$ cat header.html\r\n{{#ifpage 'index'}}\r\nYou are at the home page\r\n{{/ifpage}}\r\n```\r\n\r\nBut when there are multiple directories with an `index.html` page per directory, this code still thinks it's on the home page.\r\n\r\nThe request is for some kind of differentiator to find the path to the file.  The result might be something like this:\r\n\r\n```\r\n$ cat header.html\r\n{{#ifpage '/index'}}\r\nYou are at the home page\r\n{{/ifpage}}\r\n\r\n{{#ifpage '/articles/index'}}\r\nYou are in the articles section\r\n{{/ifpage}}\r\n```\r\n"}}
{"actor":{"display_login":"dagostinelli"}}