Replies: 2 comments
-
This might be more of a general Hugo question. I've never used React, so I'm afraid I can't be much help, and I'll be showing my ignorance. In general, you can override the default layouts in layouts/_default (e.g. baseof.html) by making your own in layouts/mysection/mysubsection/, e.g. layouts/mysection/mysubsection/baseof.html. You could copy Paige's baseof.html and adapt it as needed. If you want to run JavaScript in a particular page, you just need to <script src=""> include it (you'll need to enable unsafe markdown in config.yaml). You can put script tags into body-last.html (see the readme) if you want. Try searching for "hugo site react". I found these, which might be helpful:
What concrete problem are you running into? |
Beta Was this translation helpful? Give feedback.
-
Thanks for that. Next.JS seems to be the way, I'll explore... |
Beta Was this translation helpful? Give feedback.
-
Heya, how would I go ahead, and include a react app under a certain path? I'd like to reuse the layout/design from the template...
Beta Was this translation helpful? Give feedback.
All reactions