No description
- HTML 59.2%
- SCSS 37.1%
- Shell 3.7%
| .github/workflows | ||
| bin | ||
| scss | ||
| static | ||
| templates | ||
| .dockerignore | ||
| .gitignore | ||
| closed.html | ||
| downloads.html | ||
| dprint.json | ||
| error.html | ||
| galleries.html | ||
| index.html | ||
| LICENSE | ||
| README.md | ||
| screenshot_gallery.html | ||
| screenshots.html | ||
| Taskfile.yml | ||
jaunty.fun
A static website for Jaunty made to host world downloads, screenshots and direct users to the Discord.
Running
This site was made using Caddy's templating engine, therefore it needs to be ran using Caddy. The site also expects Caddy to be ran with $DISCORD_SLUG set to the code of your Discord server invite, otherwise the /play route will rewrite to /closed.html.
For reference, below is a production-ready Caddyfile.
jaunty.fun, www.jaunty.fun {
root .
try_files {path}.html {path}
templates
encode gzip zstd
file_server {
index index.html
}
@slug `"{$DISCORD_SLUG}" != ""`
handle /play {
redir @slug https://discord.gg/{$DISCORD_SLUG}
rewrite /closed.html
}
handle /screenshots/* {
rewrite * /screenshot_gallery.html
}
handle_errors {
rewrite * /error.html
templates
file_server
}
}