Include version number in footer

This commit is contained in:
Yarmo Mackenbach 2020-08-14 20:16:14 +02:00
parent a4595db881
commit adc6de77bd
3 changed files with 9 additions and 2 deletions

View file

@ -41,6 +41,7 @@ md.use(require('markdown-it-title'));
app.set('view engine', 'pug');
app.set('port', process.env.PORT || 3000);
app.use('/favicon.svg', express.static('favicon.svg'));
app.use(stringReplace({
@ -49,6 +50,7 @@ app.use(stringReplace({
contentTypeFilterRegexp: /application\/javascript/,
}));
app.locals.env = process.env;
app.use('/', require('./routes/main'));
app.use('/static', require('./routes/static'));
app.use('/server', require('./routes/server'));

View file

@ -17,9 +17,11 @@ main.container.container--profile
p Loading keys & verifying proofs…
footer
p
| Page generated by
| Generated by
a(href='/') Keyoxide
| .
| (
a(href="https://codeberg.org/keyoxide/web/releases")= env.npm_package_version
| ).
script(src='/static/openpgp.min.js')
script(type='application/javascript' src='/static/scripts.js' charset='utf-8')

View file

@ -20,6 +20,9 @@ main.container
block content
footer
p
| Keyoxide
a(href="https://codeberg.org/keyoxide/web/releases")= env.npm_package_version
p
a(href='https://codeberg.org/keyoxide') Source code
| -