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

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

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -