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;
|
mod mpd;
|
||||||
|
|
||||||
|
macro_rules! crate_version {
|
||||||
|
() => {
|
||||||
|
env!("CARGO_PKG_VERSION")
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "index.html")]
|
#[template(path = "index.html")]
|
||||||
struct IndexTemplate;
|
struct IndexTemplate;
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Empede</title>
|
<title>Empede</title>
|
||||||
|
|
||||||
|
<!-- Empede version: {{ crate_version!() }} -->
|
||||||
|
|
||||||
<!-- Source: https://github.com/bigskysoftware/htmx -->
|
<!-- Source: https://github.com/bigskysoftware/htmx -->
|
||||||
<script src="/static/vendor/htmx.min.js"></script>
|
<script src="/static/vendor/htmx.min.js"></script>
|
||||||
<script src="/static/vendor/htmx-sse.js"></script>
|
<script src="/static/vendor/htmx-sse.js"></script>
|
||||||
|
|
Loading…
Reference in a new issue