update
This commit is contained in:
parent
3b9d6fbd89
commit
a87c3f3ad3
3 changed files with 11 additions and 25 deletions
|
@ -41,7 +41,7 @@ pub async fn message_page(r: HttpRequest) -> impl Responder {
|
|||
}
|
||||
};
|
||||
|
||||
pages::html_fn::build_site(resp.into_string(), "Message", false, true, config).await
|
||||
pages::html_fn::build_site(resp.into_string(), "Message", false, true, config, &r).await
|
||||
}
|
||||
|
||||
#[get("/mirrors.txt")]
|
||||
|
@ -63,6 +63,7 @@ pub async fn mirrors(r: HttpRequest) -> Result<impl Responder, Error> {
|
|||
false,
|
||||
true,
|
||||
config,
|
||||
&r,
|
||||
)
|
||||
.await);
|
||||
}
|
||||
|
@ -104,6 +105,7 @@ pub async fn public_key(r: HttpRequest) -> Result<impl Responder, Error> {
|
|||
true,
|
||||
false,
|
||||
config,
|
||||
&r,
|
||||
)
|
||||
.await);
|
||||
}
|
||||
|
@ -181,7 +183,7 @@ fn build_donation_block(conf: &web::Data<config::Config>) -> String {
|
|||
}
|
||||
|
||||
#[get("/")]
|
||||
pub(crate) async fn index(conf: web::Data<config::Config>) -> impl Responder {
|
||||
pub(crate) async fn index(conf: web::Data<config::Config>, r: HttpRequest) -> impl Responder {
|
||||
let information_block = build_information_block(&conf);
|
||||
let contact_block = build_contact_block(&conf);
|
||||
let donation_block = build_donation_block(&conf);
|
||||
|
@ -192,5 +194,5 @@ pub(crate) async fn index(conf: web::Data<config::Config>) -> impl Responder {
|
|||
{donation_block}
|
||||
"
|
||||
);
|
||||
crate::pages::html_fn::build_site(content, "About Me", false, true, &conf).await
|
||||
crate::pages::html_fn::build_site(content, "About Me", false, true, &conf, &r).await
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue