Add PATCHES_URL environment variable

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-12-10 13:25:20 -05:00
parent 714f8c9612
commit ec26576414
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
3 changed files with 10 additions and 2 deletions

View File

@ -32,7 +32,10 @@ $ make
7. Profit
# Environment
All of these are optional.
`PATCHES_URL` - Link to any patches that were applied. Necessary if there are any. Do not set if there aren't.
The following are optional.
`PORT` - What port to run on (default `8003`).

View File

@ -137,7 +137,11 @@
`(footer
(div (@ (class "box footer"))
(p (a (@ (href "http://git.vern.cc/cobra/MeMe"))
"Source Code")))))
"Source Code"))
,(if (getenv "PATCHES_URL")
`(p (a (@ (href ,(getenv "PATCHES_URL")))
"Patches"))
`()))))
(define (leaderboard->sxml leaderboard)
`(div (@ (class "leaderboard box"))

View File

@ -86,6 +86,7 @@ a {
.footer.box {
width: 97%;
justify-content: space-around;
}
.leaderboard.box p {