node.js - Route in keystone.js for numerical value -


i redoing wordpress blog in keystone.js , need setup archives. need replace 2012 sort of generic number detection show archive page. not greatest solution work project. prefix url /archives/ blog established /year/month in url.

    // views app.get('/', routes.views.blog); app.get('/category/:category?', routes.views.blog); app.get('/:post', routes.views.post);  app.get('/2012/:month', routes.views.blog); app.get('/pages/gallery', routes.views.gallery);   app.all('/pages/about', routes.views.about); app.all('/pages/contact', routes.views.contact); 

i created blog archives keystonejs.

https://github.com/cmillsla/keystone-archives


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -