Add Onion URL to footer if it is defined

This commit is contained in:
Supernova 2020-08-18 16:01:54 +00:00
parent 5dc8e85d02
commit c272222886
2 changed files with 5 additions and 0 deletions

View file

@ -41,6 +41,7 @@ app.set('view engine', 'pug');
app.set('port', process.env.PORT || 3000);
app.set('domain', process.env.DOMAIN || "keyoxide.org");
app.set('keyoxide_version', packageData.version);
app.set('onion_url', process.env.ONION_URL);
app.use('/favicon.svg', express.static('favicon.svg'));

View file

@ -20,6 +20,10 @@ main.container
block content
footer
if settings.onion_url
p
| This website is available via Tor :
a(href=`${settings.onion_url}`) #{settings.onion_url}
p
| Keyoxide
a(href="https://codeberg.org/keyoxide/web/releases")= settings.keyoxide_version