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;
macro_rules! crate_version {
() => {
env!("CARGO_PKG_VERSION")
};
}
#[derive(Template)]
#[template(path = "index.html")]
struct IndexTemplate;

View File

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