forked from Mirrors/keyoxide-web
Include version number in footer
This commit is contained in:
parent
a4595db881
commit
adc6de77bd
3 changed files with 9 additions and 2 deletions
2
index.js
2
index.js
|
@ -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'));
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
| -
|
||||
|
|
Loading…
Reference in a new issue