Skip to content
Permalink
Browse files

added git revision number in footer

  • Loading branch information
x4m3 committed Feb 10, 2020
1 parent c615a58 commit c9ff7398cf2bd2950948b5f6212e33bc8b5d76f9
Showing with 3 additions and 1 deletion.
  1. +2 −0 src/server.ts
  2. +1 −1 views/layout.pug
@@ -8,6 +8,8 @@ require("./authentication");

const server = express();

server.locals.commitID = require('child_process').execSync('git rev-parse --short HEAD').toString().trim();

server.use(cookieParser());

server.use(cookieSession({
@@ -10,7 +10,7 @@ html(lang="en")
body
block content
footer
.container.text-center Made with ❤️ by #[a(href="https://philippeloctaux.com") phil] — #[a(href="https://github.com/x4m3/epi.today") source code]
.container.text-center Made with ❤️ by #[a(href="https://philippeloctaux.com") phil] — build #[a(href="https://github.com/x4m3/epi.today/commit/" + commitID) #{commitID}]

//- javascript libs
script(src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous")

0 comments on commit c9ff739

Please sign in to comment.
You can’t perform that action at this time.