Show and Log Version
This commit is contained in:
parent
04310c58e0
commit
6794f7d6ba
@ -40,7 +40,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// start http server
|
// start http server
|
||||||
println!("Running Libreddit on {}!", address.clone());
|
println!("Running Libreddit v{} on {}!", env!("CARGO_PKG_VERSION"), address.clone());
|
||||||
|
|
||||||
HttpServer::new(|| {
|
HttpServer::new(|| {
|
||||||
App::new()
|
App::new()
|
||||||
|
@ -61,6 +61,11 @@ span {
|
|||||||
background: #151515;
|
background: #151515;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#version {
|
||||||
|
color: white;
|
||||||
|
opacity: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
/* Subreddit */
|
/* Subreddit */
|
||||||
|
|
||||||
.subreddit {
|
.subreddit {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
{% block body %}
|
{% block body %}
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<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>
|
<a id="github" href="https://github.com/spikecodes/libreddit">GITHUB</a>
|
||||||
</header>
|
</header>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user