show commit hash on site

This commit is contained in:
jomo 2014-11-02 14:54:57 +01:00
parent be42030a0a
commit b9848e6e1f
2 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@ var router = express.Router();
/* GET home page. */ /* GET home page. */
router.get('/', function(req, res) { router.get('/', function(req, res) {
res.render('index', { title: 'Crafatar', domain: "https://" + req.headers.host }); res.render('index', { title: 'Crafatar', domain: "https://" + req.headers.host, commit: process.env.COMMIT_HASH || "unknown" });
}); });

View File

@ -59,3 +59,6 @@ block content
.sideface.Notch(title="Notch") .sideface.Notch(title="Notch")
.sideface.sk89q(title="sk89q") .sideface.sk89q(title="sk89q")
.sideface.md_5(title="md_5") .sideface.md_5(title="md_5")
hr
small Site version
a(href="https://github.com/Jake0oo0/crafatar/commit/#{commit}") #{commit}