Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a view in index.js #4970

Open
aniaska4 opened this issue Oct 11, 2019 · 0 comments
Open

Adding a view in index.js #4970

aniaska4 opened this issue Oct 11, 2019 · 0 comments

Comments

@aniaska4
Copy link

aniaska4 commented Oct 11, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant