add version information to index page

This commit is contained in:
Ondrej Synacek 2019-11-14 09:02:56 +01:00
parent abc1531b24
commit 29cc00717a
2 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if (certEndpoint) {
}
app.get('/', (req, res) => {
res.render('index')
res.render('index', { version })
})
app.get('/error', (req, res) => {

View File

@ -75,6 +75,7 @@
</article>
<footer>
v.<%= version %> ◆
Created by <a href="https://ondrejsynacek.com" target="_blank">Ondrej Synacek</a> (2019) ◆
<a href="https://github.com/comatory/fb2iCal" target="_blank" title="Github">Source</a> ◆
<a href="/about" target="_blank" title="About the project">About</about>