Browse Source

Show footer on front page

master
Kim Grytøyr 2 years ago
parent
commit
76821d14f0
Signed by: kim GPG Key ID: 759EF8C94E0B45B7
  1. 6
      src/routes/index.js
  2. 4
      src/views/index.jade

6
src/routes/index.js

@ -13,7 +13,11 @@ const paste = require('../lib/paste');
/* GET home page. */
router.get('/', (req, res, next) => {
res.render('index', { title: 'npaste' });
res.render('index', {
title: 'npaste',
generatedTimestamp: new Date().toISOString(),
version: config.version
});
});
/* GET paste */

4
src/views/index.jade

@ -3,4 +3,6 @@ extends layout
block content
h1= title
p Simple personal pastebin server.
a(href="https://git.grytoyr.io/npaste/") https://git.grytoyr.io/npaste/
a(href="https://src.grytoyr.io/kim/npaste/") https://src.grytoyr.io/kim/npaste/
include footer.jade
Loading…
Cancel
Save