Open tomsoderlund opened 9 years ago
Looks like it's a formatting issue rather than anything to do with your data files.
You've got an extra colon in there. Try:
permalinks: {
structure: ':basename/index.html'
}
Thanks for spotting, but yields same results (= pages are created in dist/[pageName].html
format). I think there's perhaps something with my files:
setting?
files: { '<%= config.dist %>/': ['<%= config.src %>/templates/pages/index.hbs'] }
hmm, it's possible that the pages generated via the pages
property are causing issues. Have you tried with and without pages
to see if permalinks works without it?
and thank you @designorant!
I have a JSON file
landingpages.json
that currently spits out HTML files in the formatdist/[pageName].html
and now I'm trying to use this middleware to producedist/[pageName]/index.html
, but can't get it to work:Any suggestions?