mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
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('view engine', 'pug');
|
||||||
app.set('port', process.env.PORT || 3000);
|
app.set('port', process.env.PORT || 3000);
|
||||||
|
|
||||||
app.use('/favicon.svg', express.static('favicon.svg'));
|
app.use('/favicon.svg', express.static('favicon.svg'));
|
||||||
|
|
||||||
app.use(stringReplace({
|
app.use(stringReplace({
|
||||||
|
@ -49,6 +50,7 @@ app.use(stringReplace({
|
||||||
contentTypeFilterRegexp: /application\/javascript/,
|
contentTypeFilterRegexp: /application\/javascript/,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
app.locals.env = process.env;
|
||||||
app.use('/', require('./routes/main'));
|
app.use('/', require('./routes/main'));
|
||||||
app.use('/static', require('./routes/static'));
|
app.use('/static', require('./routes/static'));
|
||||||
app.use('/server', require('./routes/server'));
|
app.use('/server', require('./routes/server'));
|
||||||
|
|
|
@ -17,9 +17,11 @@ main.container.container--profile
|
||||||
p Loading keys & verifying proofs…
|
p Loading keys & verifying proofs…
|
||||||
footer
|
footer
|
||||||
p
|
p
|
||||||
| Page generated by
|
| Generated by
|
||||||
a(href='/') Keyoxide
|
a(href='/') Keyoxide
|
||||||
| .
|
| (
|
||||||
|
a(href="https://codeberg.org/keyoxide/web/releases")= env.npm_package_version
|
||||||
|
| ).
|
||||||
|
|
||||||
script(src='/static/openpgp.min.js')
|
script(src='/static/openpgp.min.js')
|
||||||
script(type='application/javascript' src='/static/scripts.js' charset='utf-8')
|
script(type='application/javascript' src='/static/scripts.js' charset='utf-8')
|
||||||
|
|
|
@ -20,6 +20,9 @@ main.container
|
||||||
block content
|
block content
|
||||||
|
|
||||||
footer
|
footer
|
||||||
|
p
|
||||||
|
| Keyoxide
|
||||||
|
a(href="https://codeberg.org/keyoxide/web/releases")= env.npm_package_version
|
||||||
p
|
p
|
||||||
a(href='https://codeberg.org/keyoxide') Source code
|
a(href='https://codeberg.org/keyoxide') Source code
|
||||||
| -
|
| -
|
||||||
|
|
Loading…
Reference in a new issue