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?
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 addviews.blog
to this code. Iskeystone.js
handle this?