diff --git a/src/main.rs b/src/main.rs index a1294d9..e927b54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -121,6 +121,9 @@ fn compile_templates() -> Handlebars { handlebars .register_partial("bunbun_version", env!("CARGO_PKG_VERSION")) .unwrap(); + handlebars + .register_partial("bunbun_src", env!("CARGO_PKG_REPOSITORY")) + .unwrap(); macro_rules! register_template { [ $( $template:expr ),* ] => { $( diff --git a/src/routes.rs b/src/routes.rs index f25ec69..1f8221a 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -1,5 +1,4 @@ use crate::{template_args, BunBunError, Route, State}; -use actix_web::http::header::ContentType; use actix_web::web::{Data, Query}; use actix_web::{get, http::header}; use actix_web::{HttpRequest, HttpResponse, Responder}; diff --git a/src/templates/index.hbs b/src/templates/index.hbs index 04c2900..5869c85 100644 --- a/src/templates/index.hbs +++ b/src/templates/index.hbs @@ -7,6 +7,8 @@
To view a full list of commands currently available on this instance, check out the command list.