Show and Log Version

This commit is contained in:
spikecodes 2020-12-05 21:29:25 -08:00
parent 04310c58e0
commit 6794f7d6ba
3 changed files with 7 additions and 2 deletions

View File

@ -40,7 +40,7 @@ async fn main() -> std::io::Result<()> {
}
// start http server
println!("Running Libreddit on {}!", address.clone());
println!("Running Libreddit v{} on {}!", env!("CARGO_PKG_VERSION"), address.clone());
HttpServer::new(|| {
App::new()

View File

@ -61,6 +61,11 @@ span {
background: #151515;
}
#version {
color: white;
opacity: 25%;
}
/* Subreddit */
.subreddit {

View File

@ -21,7 +21,7 @@
{% block body %}
{% block header %}
<header>
<a href="/"><span id="lib">lib</span>reddit.</a>
<a href="/"><span id="lib">lib</span>reddit. <span id="version">v{{ env!("CARGO_PKG_VERSION") }}</span></a>
<a id="github" href="https://github.com/spikecodes/libreddit">GITHUB</a>
</header>
{% endblock %}