Browse Source

Show footer on front page

tags/v0.6.5
Kim Grytøyr 1 year ago
parent
commit
76821d14f0
Signed by: kim <kim@grytoyr.io> GPG Key ID: 759EF8C94E0B45B7
2 changed files with 8 additions and 2 deletions
  1. +5
    -1
      src/routes/index.js
  2. +3
    -1
      src/views/index.jade

+ 5
- 1
src/routes/index.js View File

@@ -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 */


+ 3
- 1
src/views/index.jade View File

@@ -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