Add current Empede version as HTML comment
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sijmen 2023-05-13 14:21:48 +02:00
parent 1fb778da54
commit cac047d121
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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>