keystonejs / keystone-classic

Node.js CMS and web app framework
http://v4.keystonejs.com
MIT License
14.65k stars 2.21k forks source link

Adding a view in index.js #4970

Open aniaska4 opened 4 years ago

aniaska4 commented 4 years ago

I was wondering if it's possible in keystone.js to add a view.post in two different places. For example I have: app.get('/blog', views.blog) -> where I show view only in blog, but also I would like to show this in main page ('/') . But if I do: app.get('/', views.blog) -> I see only this blog, no footer, nav and others sections. How can I implement this? Also I would like to show this blog in 404 page: keystone.set('404', (req, res) => { res.status(404).render('errors/404') }) but how can I add views.blog to this code. Is keystone.js handle this?