One minute
A Games Page
I made a new static site in the hugo framework. This one is for publishing html5 games. check it out
It was also simple, as most stuff in hugo so far. I made a new directory called static in the project root. In this directory I then created a subdir named games, and each game then has its own subdir.
I can then put all files from my godot (or other engine) export into that games directory.
The game is then playable straight from the browser.
root/
├─ static/
│ ├─ games/
│ │ ├─ game1/
│ │ │ ├─ index.html
│ │ │ ├─ index.js
│ │ │ ├─ index.wasm
When you run the hugo command to generate the website, hugo then puts the games directory into its public/ (root) directory.
public/
├─ games/
│ ├─ game1/
│ │ ├─ index.html
│ │ ├─ index.js
│ │ ├─ index.wasm
Read other posts