jsantell / poet

A node.js blog engine
jsantell.github.io/poet
MIT License
605 stars 146 forks source link

Routing not working? #116

Closed rjbergerud closed 8 years ago

rjbergerud commented 8 years ago

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:

 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.