From 8990aed644bea2d3fd8aafe6157943dd93ca0077 Mon Sep 17 00:00:00 2001 From: sneedium Date: Sun, 6 Nov 2022 16:50:31 -0500 Subject: [PATCH] Updated website to reflect new packaging and git. Signed-off-by: sneedium --- index.h | 8 ++++---- main.c | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/index.h b/index.h index 38b7a33..dad0213 100644 --- a/index.h +++ b/index.h @@ -10,10 +10,10 @@ static const char *INDEX_HTML = "

WIP site for SneedMC, written in pure Mongoose.

\r\n" "

Links:

\r\n" "
  • Website Source
  • \r\n" - "
  • SneedMC
  • \r\n" - "
  • asd
  • \r\n" - "
  • \r\n" - "
  • \r\n" + "
  • SneedMC Source
  • \r\n" + "

    Prebuilt Packages

    \r\n" + "

    Prebuilt packages are available on packages.sneedmc.org.

    \r\n" + "

    For build and download instructions, see the git.

    \r\n" "\r\n" "\r\n"; diff --git a/main.c b/main.c index c768c0b..18da854 100644 --- a/main.c +++ b/main.c @@ -68,9 +68,11 @@ static void ev_handler(struct mg_connection *nc, int ev, void *p, void *f) { // allow for dynamic stuff in the future mg_http_reply(nc, 200, "", INDEX_HTML, BASIC_STYLE); } else if (eq(uri, "src", 4)) { - redir(nc, "https://github.com/Sneederix/sneedmc.org"); - } else if (eq(uri, "gh", 3)) { - redir(nc, "https://github.com/Sneederix/SneedMC"); + redir(nc, "https://git.sneedmc.org/Sneederix/sneedmc.org"); + } else if (eq(uri, "git", 4)) { + redir(nc, "https://git.sneedmc.org/Sneederix/sneedmc"); + } else if (eq(uri, "build", 6)) { + redir(nc, "https://git.sneedmc.org/Sneederix/sneedmc/src/branch/develop/BUILD.md"); } else { struct mg_http_serve_opts opts = {.root_dir = "."}; // Serve local dir mg_http_serve_dir(nc, p, &opts);