markdalgleish / static-site-generator-webpack-plugin

Minimal, unopinionated static site generator powered by webpack
MIT License
1.61k stars 97 forks source link

Adding locals per route / Modifying meta tags per page #118

Open dvidsilva opened 6 years ago

dvidsilva commented 6 years ago

Hi, I couldn't find this in the docs and didn't manage on my own.

Is there a way I can change the title of every page, description, og tags, etc? I tried adding some packages to my site that promise to do that but the pages generated using this plugin don't get to the point where that gets executed.

Has any of you managed to accomplish this?

Thx

jahredhope commented 6 years ago

The tool passes in a path parameter which I use to get different HTML results, then tools like React Helmet and React Router to generate the different meta tag HTML.