This is the first time posting here so do let me know if this is not the place to be asking these kind of questions.
I’m currently building an SPA and I want to use Hugo as a page generator for it. This allows me to have a blog alongside the actual application.
The way I did this is by creating
content/admin/_index.md and I have an if statement that displays a div for react to be inserted in under the list.html template. So far this all works but if there’s any best practive, do let me know
The issue I’m having is that I use React Router which will lead the user to links such as /admin/feature. When developing on the app, this link doesn’t actually exist within Hugo and therefore, a 404 gets thrown. Is there any way around this? Ideally, it would be good to have a “default” fallback template for “posts” that are in the admin category.
I know this sounds like a hack so any suggestions are welcome
Thanks in advance!