I'm having a lot of trouble getting the routing to work. I'm trying to work with default settings as much as possible, so my templates are all in jade, as well as my posts in _posts, and this code here all works as expected:
var poet = Poet(app, {
posts: './_posts/',
postsPerPage: 5,
metaFormat: 'json'
});
poet.init().then(function (poet, err) {
// ready to go!
if(err) {console.log(err)}
console.log(poet.helpers.getPost("hot-vim-colours"));
}); ```
And so poet is finding and storing the hot-vim-colours post alright, but when I go to localhost:3000/post/hot-vim-colours, I get a 404 error.
Hey,
I'm having a lot of trouble getting the routing to work. I'm trying to work with default settings as much as possible, so my templates are all in jade, as well as my posts in _posts, and this code here all works as expected: