Add current Empede version as HTML comment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1fb778da54
commit
cac047d121
2 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,12 @@ use serde::Deserialize;
|
|||
|
||||
mod mpd;
|
||||
|
||||
macro_rules! crate_version {
|
||||
() => {
|
||||
env!("CARGO_PKG_VERSION")
|
||||
};
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "index.html")]
|
||||
struct IndexTemplate;
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<title>Empede</title>
|
||||
|
||||
<!-- Empede version: {{ crate_version!() }} -->
|
||||
|
||||
<!-- Source: https://github.com/bigskysoftware/htmx -->
|
||||
<script src="/static/vendor/htmx.min.js"></script>
|
||||
|
|
Loading…
Reference in a new issue