remove print_version option, apply crate version to css

This commit is contained in:
yggverse 2025-08-06 21:12:35 +03:00
parent 70c0174fbc
commit 5ba9a95f6e
3 changed files with 4 additions and 12 deletions

View file

@ -27,7 +27,7 @@ pub struct Meta {
pub title: String,
/// * use vector to keep the order from the arguments list
pub trackers: Option<Vec<Url>>,
pub version: Option<String>,
pub version: String,
}
#[get("/?<page>")]
@ -140,11 +140,7 @@ fn rocket() -> _ {
format_time: config.format_time,
title: config.title,
trackers: config.tracker,
version: if config.print_version {
Some(env!("CARGO_PKG_VERSION").into())
} else {
None
},
version: env!("CARGO_PKG_VERSION").into(),
})
.mount("/", FileServer::from(config.statics))
.mount("/", routes![index, rss])