feat: added version to homepage

This commit is contained in:
frosty
2026-04-03 15:15:41 -04:00
parent c9709029ca
commit db02c4cc80
5 changed files with 28 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ int home_handler(UrlParams *params) {
TemplateContext ctx = new_context();
context_set(&ctx, "theme", theme);
context_set(&ctx, "version", VERSION);
beaker_set_locale(&ctx, locale);
char *rendered_html = render_template("home.html", &ctx);
send_response(rendered_html);