Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What are you doing about repeated content?




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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: