I want to create a duplicate page of index.hbs
as newindex.hbs
. I want the same configurations as index.hbs
in newindex.hbs
like pagination and all.
I have tried many ways to do so but unable to do that.
I have also created a route in routes.yml
but posts are not generating in that like index.html
/newindex/:
permalink: /{slug}/
template: newindex
This code block is working in index.hbs
but not in newindex.hbs
{{#foreach posts}}
{{> "posts"}}
{{/foreach}}
How can I generate the posts like index.hbs
in newindex.hbs
?