{"action":"opened","issue":{"url":"https://api.github.com/repos/probberechts/cactus-dark/issues/8","repository_url":"https://api.github.com/repos/probberechts/cactus-dark","labels_url":"https://api.github.com/repos/probberechts/cactus-dark/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/probberechts/cactus-dark/issues/8/comments","events_url":"https://api.github.com/repos/probberechts/cactus-dark/issues/8/events","html_url":"https://github.com/probberechts/cactus-dark/issues/8","id":193336543,"number":8,"title":"TypeError on layout.ejs","user":{"login":"gigavinyl","id":9014596,"avatar_url":"https://avatars.githubusercontent.com/u/9014596?v=3","gravatar_id":"","url":"https://api.github.com/users/gigavinyl","html_url":"https://github.com/gigavinyl","followers_url":"https://api.github.com/users/gigavinyl/followers","following_url":"https://api.github.com/users/gigavinyl/following{/other_user}","gists_url":"https://api.github.com/users/gigavinyl/gists{/gist_id}","starred_url":"https://api.github.com/users/gigavinyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gigavinyl/subscriptions","organizations_url":"https://api.github.com/users/gigavinyl/orgs","repos_url":"https://api.github.com/users/gigavinyl/repos","events_url":"https://api.github.com/users/gigavinyl/events{/privacy}","received_events_url":"https://api.github.com/users/gigavinyl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-04T07:09:31Z","updated_at":"2016-12-04T07:09:31Z","closed_at":null,"body":"Every time I run \"hexo server\" with this theme installed and I try to render the page, I get this error:\r\n```bash\r\nUnhandled rejection TypeError: /home/gigavinyl/Projects/blog/themes/cactus-dark/layout/layout.ejs:3\r\n    1| <!DOCTYPE html>\r\n    2| <html<%= config.language ? \" lang=\" + config.language.substring(0, 2) : \"\"%>>\r\n >> 3| <%- partial('_partial/head') %>\r\n    4| <body>\r\n    5|     <% if (is_post()) { %>\r\n    6|       <%- partial('_partial/header_post') %>\r\n\r\n/home/gigavinyl/Projects/blog/themes/cactus-dark/layout/_partial/head.ejs:38\r\n    36|     <% } %>\r\n    37|     <% if (theme.rss) { %>\r\n >> 38|       <link rel=\"alternate\" href=\"<%= url_for(theme.rss) %>\" title=\"<%= config.title %>\" type=\"application/atom+xml\" />\r\n    39|     <% } %>\r\n    40|     <!-- jquery -->\r\n    41|     <%- js('lib/jquery/jquery.min') %>\r\n\r\npath.substring is not a function\r\n    at Object.urlForHelper (/home/gigavinyl/Projects/blog/node_modules/hexo/lib/plugins/helper/url_for.js:9:31)\r\n    at Object.wrapper [as url_for] (/home/gigavinyl/Projects/blog/node_modules/lodash/lodash.js:4994:19)\r\n    at eval (eval at exports.compile (/home/gigavinyl/Projects/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:36:1735)\r\n    at eval (eval at exports.compile (/home/gigavinyl/Projects/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:36:1991)\r\n    at /home/gigavinyl/Projects/blog/node_modules/ejs/lib/ejs.js:255:15\r\n    at Theme._View.View._compiledSync (/home/gigavinyl/Projects/blog/node_modules/hexo/lib/theme/view.js:122:20)\r\n    at Theme._View.View.View.renderSync (/home/gigavinyl/Projects/blog/node_modules/hexo/lib/theme/view.js:50:21)\r\n    at Object.partial (/home/gigavinyl/Projects/blog/node_modules/hexo/lib/plugins/helper/partial.js:42:17)\r\n    at Object.wrapper [as partial] (/home/gigavinyl/Projects/blog/node_modules/lodash/lodash.js:4994:19)\r\n    at eval (eval at exports.compile (/home/gigavinyl/Projects/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:160)\r\n    at eval (eval at exports.compile (/home/gigavinyl/Projects/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:796)\r\n    at /home/gigavinyl/Projects/blog/node_modules/ejs/lib/ejs.js:255:15\r\n    at Theme._View.View._compiled (/home/gigavinyl/Projects/blog/node_modules/hexo/lib/theme/view.js:127:30)\r\n    at Theme._View.View.View.render (/home/gigavinyl/Projects/blog/node_modules/hexo/lib/theme/view.js:29:15)\r\n    at /home/gigavinyl/Projects/blog/node_modules/hexo/lib/theme/view.js:40:23\r\n    at tryCatcher (/home/gigavinyl/Projects/blog/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (/home/gigavinyl/Projects/blog/node_modules/bluebird/js/release/promise.js:510:31)\r\n    at Promise._settlePromise (/home/gigavinyl/Projects/blog/node_modules/bluebird/js/release/promise.js:567:18)\r\n    at Promise._settlePromise0 (/home/gigavinyl/Projects/blog/node_modules/bluebird/js/release/promise.js:612:10)\r\n    at Promise._settlePromises (/home/gigavinyl/Projects/blog/node_modules/bluebird/js/release/promise.js:691:18)\r\n    at Async._drainQueue (/home/gigavinyl/Projects/blog/node_modules/bluebird/js/release/async.js:138:16)\r\n    at Async._drainQueues (/home/gigavinyl/Projects/blog/node_modules/bluebird/js/release/async.js:148:10)\r\n```\r\n"}}
{"actor":{"display_login":"gigavinyl"}}