Comment by gulugawa
2 hours ago
There's a Vite plugin that can be used to insert identical HTML on multiple pages without JavaScript. I use it for the navbar and footer: https://www.npmjs.com/package/vite-plugin-handlebars
For repeated content where JavaScript is required, I use web components.
No comments yet
Contribute on Hacker News ↗