New footer that includes current commit
This commit is contained in:
9
routes.c
9
routes.c
@ -6,6 +6,7 @@
|
||||
#include "routes.h"
|
||||
#include "baked.h"
|
||||
#include "clonestr.h"
|
||||
#include "commit.h"
|
||||
|
||||
#define INTERNAL_SERVER_ERROR_MSG "Internal server error ;(. Try again later..."
|
||||
|
||||
@ -106,6 +107,8 @@ ROUTE_HANDLER(page_not_found)
|
||||
return;
|
||||
}
|
||||
|
||||
list_append(&env, fmt("-DCOMMIT=%s", COMMIT_STRING));
|
||||
|
||||
#if DEBUG
|
||||
list_append(&env, "-DHOTRELOAD=1");
|
||||
#else
|
||||
@ -192,6 +195,8 @@ ROUTE_HANDLER(home)
|
||||
make_internal_server_error(result);
|
||||
return;
|
||||
}
|
||||
|
||||
list_append(&env, fmt("-DCOMMIT=%s", COMMIT_STRING));
|
||||
|
||||
#if DEBUG
|
||||
list_append(&env, "-DHOTRELOAD=1");
|
||||
@ -225,6 +230,8 @@ ROUTE_HANDLER(generic_blog)
|
||||
return;
|
||||
}
|
||||
|
||||
list_append(&env, fmt("-DCOMMIT=%s", COMMIT_STRING));
|
||||
|
||||
#if DEBUG
|
||||
list_append(&env, "-DHOTRELOAD=1");
|
||||
#else
|
||||
@ -310,6 +317,8 @@ ROUTE_HANDLER(blog)
|
||||
make_internal_server_error(result);
|
||||
return;
|
||||
}
|
||||
|
||||
list_append(&env, fmt("-DCOMMIT=%s", COMMIT_STRING));
|
||||
|
||||
#if DEBUG
|
||||
list_append(&env, "-DHOTRELOAD=1");
|
||||
|
Reference in New Issue
Block a user