diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-04-03 15:26:01 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-04-03 15:26:01 -0400 |
| commit | 627a219bea8029107fcee77fbeea7eb79f0a79b2 (patch) | |
| tree | 48f3b39bb02853191462e7873cd4beef0fded73d /src | |
| parent | db02c4cc8028606fa57fd50424491008990ef6fd (diff) | |
| download | omnisearch-627a219bea8029107fcee77fbeea7eb79f0a79b2.tar.gz | |
feat: made version on homepage link to repo
Diffstat (limited to 'src')
| -rw-r--r-- | src/Routes/Home.c | 1 | ||||
| -rw-r--r-- | src/Utility/Utility.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/Routes/Home.c b/src/Routes/Home.c index 1e5c3df..be9a3d0 100644 --- a/src/Routes/Home.c +++ b/src/Routes/Home.c @@ -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); diff --git a/src/Utility/Utility.h b/src/Utility/Utility.h index 8d13306..e00e50c 100644 --- a/src/Utility/Utility.h +++ b/src/Utility/Utility.h @@ -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); |
