{"action":"created","issue":{"url":"https://api.github.com/repos/hexojs/hexo/issues/1589","labels_url":"https://api.github.com/repos/hexojs/hexo/issues/1589/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo/issues/1589/comments","events_url":"https://api.github.com/repos/hexojs/hexo/issues/1589/events","html_url":"https://github.com/hexojs/hexo/issues/1589","id":116717582,"number":1589,"title":"Migrating from jekyll to hexo","user":{"login":"reverland","id":1418726,"avatar_url":"https://avatars.githubusercontent.com/u/1418726?v=3","gravatar_id":"","url":"https://api.github.com/users/reverland","html_url":"https://github.com/reverland","followers_url":"https://api.github.com/users/reverland/followers","following_url":"https://api.github.com/users/reverland/following{/other_user}","gists_url":"https://api.github.com/users/reverland/gists{/gist_id}","starred_url":"https://api.github.com/users/reverland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reverland/subscriptions","organizations_url":"https://api.github.com/users/reverland/orgs","repos_url":"https://api.github.com/users/reverland/repos","events_url":"https://api.github.com/users/reverland/events{/privacy}","received_events_url":"https://api.github.com/users/reverland/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-13T07:28:31Z","updated_at":"2015-11-30T02:42:48Z","closed_at":"2015-11-30T02:42:48Z","body":"Hi, I'm just migrating from jekyll to hexo. \r\n\r\n `new_post_name` and `permalink`  to\r\n\r\n      permalink: :category/:year/:month/:day/:title/\r\n      new_post_name: :year-:month-:day-:title.md # File name of new posts\r\n\r\nHowever, many of my `*.md` files are like this:\r\n\r\n    2014-06-13-.md\r\n\r\nThe permalink will become:\r\n\r\n    2015/11/13/2014-06-13.html\r\n\r\nThats not what i want, it should be as jekyll will give.\r\n\r\n    /2014/06/13/\r\n\r\nSo I changed the [hexo-util/lib/permalink.js(L28)](https://github.com/hexojs/hexo-util/blob/cb685f19ecb5ba9ee48109049b21a21cd3da7dee/lib/permalink.js#L28) to \r\n\r\n     return '(.*?)';\r\n\r\nso I can get permalink like \r\n\r\n    http://xxx.org/life/2014/12/24//\r\n\r\nwhich won't break previous urls when I use jekyll\r\n\r\n    http://xxx.org/life/2014/12/24/\r\n\r\nI don't know if it is a considerable idea to allow \"\" slug so that it won't regard the whole filename as title. \r\n\r\nps: The hexo server is slow and takes lots of memory and cpu before it really start. I find similar issues but don't dive into it much."},"comment":{"url":"https://api.github.com/repos/hexojs/hexo/issues/comments/160503342","html_url":"https://github.com/hexojs/hexo/issues/1589#issuecomment-160503342","issue_url":"https://api.github.com/repos/hexojs/hexo/issues/1589","id":160503342,"user":{"login":"reverland","id":1418726,"avatar_url":"https://avatars.githubusercontent.com/u/1418726?v=3","gravatar_id":"","url":"https://api.github.com/users/reverland","html_url":"https://github.com/reverland","followers_url":"https://api.github.com/users/reverland/followers","following_url":"https://api.github.com/users/reverland/following{/other_user}","gists_url":"https://api.github.com/users/reverland/gists{/gist_id}","starred_url":"https://api.github.com/users/reverland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reverland/subscriptions","organizations_url":"https://api.github.com/users/reverland/orgs","repos_url":"https://api.github.com/users/reverland/repos","events_url":"https://api.github.com/users/reverland/events{/privacy}","received_events_url":"https://api.github.com/users/reverland/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T02:42:48Z","updated_at":"2015-11-30T02:42:48Z","body":"@Xuanwo 嗯。。。无关紧要，我本地改了就是。。。"}}