feat: made version on homepage link to repo

This commit is contained in:
frosty
2026-04-03 15:26:01 -04:00
parent db02c4cc80
commit 627a219bea
5 changed files with 15 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@ int home_handler(UrlParams *params) {
TemplateContext ctx = new_context();
context_set(&ctx, "theme", theme);
context_set(&ctx, "version", VERSION);
context_set(&ctx, "git_remote", GIT_REMOTE);
beaker_set_locale(&ctx, locale);
char *rendered_html = render_template("home.html", &ctx);
send_response(rendered_html);
+4
View File
@@ -7,6 +7,10 @@
#define VERSION "unknown"
#endif
#ifndef GIT_REMOTE
#define GIT_REMOTE "https://git.bwaaa.monster/omnisearch"
#endif
#define LINK_FIELD_COUNT 3
int hex_to_int(char c);