Error after create custom page

Hi, I have a little problem with custom page. I’ve created page-search.hbs for search engine on my blog, but when I put it on the server, I will add a link in the menu, restart NodeJS and refresh the page, I have 404 error. So I tried to create a post and turn him into page with the same name and I get “[page-search.hbs] Cannot read property ‘length’ of undefined” error (500). What I’m doing wrong?

I used Ghost 2.0 and little modyfied Casper theme. Link to search page: https://www.ghost.jakubwilk.pl/search/
page-search.hbs → http://collabedit.com/9td5h

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.