forked from Mirrors/keyoxide-web
Add Onion URL to footer if it is defined
This commit is contained in:
parent
5dc8e85d02
commit
c272222886
2 changed files with 5 additions and 0 deletions
1
index.js
1
index.js
|
@ -41,6 +41,7 @@ app.set('view engine', 'pug');
|
||||||
app.set('port', process.env.PORT || 3000);
|
app.set('port', process.env.PORT || 3000);
|
||||||
app.set('domain', process.env.DOMAIN || "keyoxide.org");
|
app.set('domain', process.env.DOMAIN || "keyoxide.org");
|
||||||
app.set('keyoxide_version', packageData.version);
|
app.set('keyoxide_version', packageData.version);
|
||||||
|
app.set('onion_url', process.env.ONION_URL);
|
||||||
|
|
||||||
app.use('/favicon.svg', express.static('favicon.svg'));
|
app.use('/favicon.svg', express.static('favicon.svg'));
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,10 @@ main.container
|
||||||
block content
|
block content
|
||||||
|
|
||||||
footer
|
footer
|
||||||
|
if settings.onion_url
|
||||||
|
p
|
||||||
|
| This website is available via Tor :
|
||||||
|
a(href=`${settings.onion_url}`) #{settings.onion_url}
|
||||||
p
|
p
|
||||||
| Keyoxide
|
| Keyoxide
|
||||||
a(href="https://codeberg.org/keyoxide/web/releases")= settings.keyoxide_version
|
a(href="https://codeberg.org/keyoxide/web/releases")= settings.keyoxide_version
|
||||||
|
|
Loading…
Reference in a new issue