Merge pull request 'Add Onion URL to footer if it is defined' (#30) from Supernova/fork-keyoxide:v2OnionFooter into dev

Reviewed-on: https://codeberg.org/keyoxide/web/pulls/30
This commit is contained in:
Yarmo Mackenbach 2020-08-20 16:33:55 +02:00
commit 8ec72d2cf0
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