Selaa lähdekoodia

Merge branch 'master' of github.com:Jake0oo0/crafatar

Jake 10 vuotta sitten
vanhempi
sitoutus
330c4814d6
2 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 1 1
      routes/index.js
  2. 4 1
      views/index.jade

+ 1 - 1
routes/index.js

@@ -3,7 +3,7 @@ var router = express.Router();
 
 /* GET home page. */
 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" });
 });
 
 

+ 4 - 1
views/index.jade

@@ -58,4 +58,7 @@ block content
         .sideface.Jake0oo0(title="Jake0oo0")
         .sideface.Notch(title="Notch")
         .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}