{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/7384","repository_url":"https://api.github.com/repos/jekyll/jekyll","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/7384/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/7384/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/7384/events","html_url":"https://github.com/jekyll/jekyll/issues/7384","id":381908537,"node_id":"MDU6SXNzdWUzODE5MDg1Mzc=","number":7384,"title":"Basename filter","user":{"login":"cup","id":926619,"node_id":"MDQ6VXNlcjkyNjYxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/926619?v=4","gravatar_id":"","url":"https://api.github.com/users/cup","html_url":"https://github.com/cup","followers_url":"https://api.github.com/users/cup/followers","following_url":"https://api.github.com/users/cup/following{/other_user}","gists_url":"https://api.github.com/users/cup/gists{/gist_id}","starred_url":"https://api.github.com/users/cup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cup/subscriptions","organizations_url":"https://api.github.com/users/cup/orgs","repos_url":"https://api.github.com/users/cup/repos","events_url":"https://api.github.com/users/cup/events{/privacy}","received_events_url":"https://api.github.com/users/cup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-17T22:45:46Z","updated_at":"2018-11-18T16:19:49Z","closed_at":null,"author_association":"NONE","body":"I am interested in generating index pages for the different folders in my Jekyll\r\nsite. I started with this code:\r\n\r\n~~~\r\n{% for q in site.html_pages %}\r\n- {{ q.url }}\r\n{% endfor %}\r\n~~~\r\n\r\nwhich returns something like this:\r\n\r\n~~~\r\n- /alfa-1/bravo-1/\r\n- /alfa-1/bravo-2/\r\n- /alfa-1/charlie-5.html\r\n~~~\r\n\r\nI would like to return basename for each, similar to the basename property found\r\nunder site.static_files. However in this case basename would need to be a filter\r\nrather than property, else for folders it would just return \"index\". The result\r\ncode would look like this:\r\n\r\n~~~\r\n{% for q in site.html_pages %}\r\n- {{ q.url | basename }}\r\n{% endfor %}\r\n~~~\r\n\r\nand output like this:\r\n\r\n~~~\r\n- bravo-1\r\n- bravo-2\r\n- charlie-5\r\n~~~\r\n\r\nI have this as a workaround, but it would be nice as a builtin:\r\n\r\n~~~\r\n{% for q in site.html_pages %}\r\n- {{ q.url | split: '/' | last | remove: '.html' }}\r\n{% endfor %}\r\n~~~"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/439704872","html_url":"https://github.com/jekyll/jekyll/issues/7384#issuecomment-439704872","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/7384","id":439704872,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTcwNDg3Mg==","user":{"login":"cup","id":926619,"node_id":"MDQ6VXNlcjkyNjYxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/926619?v=4","gravatar_id":"","url":"https://api.github.com/users/cup","html_url":"https://github.com/cup","followers_url":"https://api.github.com/users/cup/followers","following_url":"https://api.github.com/users/cup/following{/other_user}","gists_url":"https://api.github.com/users/cup/gists{/gist_id}","starred_url":"https://api.github.com/users/cup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cup/subscriptions","organizations_url":"https://api.github.com/users/cup/orgs","repos_url":"https://api.github.com/users/cup/repos","events_url":"https://api.github.com/users/cup/events{/privacy}","received_events_url":"https://api.github.com/users/cup/received_events","type":"User","site_admin":false},"created_at":"2018-11-18T16:19:49Z","updated_at":"2018-11-18T16:19:49Z","author_association":"NONE","body":"@DirtyF i dont think any of those solve this problem - could you perhaps elaborate"}}
{"actor":{"display_login":"cup"}}