diff --git a/config.js b/config.js index fedfc4800657f3a6c50c2fdc480369458740e474..55233ad9bc424299da16be330c0e7e376b94d6a3 100644 --- a/config.js +++ b/config.js @@ -3,6 +3,9 @@ const config = { storage: { type: "JSON", path: "./assets/assets.json" + }, + repository:{ + url: "https://gitlab.com/tomeof/node-3dps" } } diff --git a/routes/home.js b/routes/home.js index fe8a6c205dd7df3dd377a281efdcd378dc58a21f..4672b36cb76bcb463f32c63df57d2cddeff27adf 100644 --- a/routes/home.js +++ b/routes/home.js @@ -1,5 +1,7 @@ const express = require("express"); const pug = require("pug"); +const config = require("../config"); + let router = express.Router(); @@ -18,7 +20,10 @@ router.route("/") `; const compiledFunction = pug.compileFile("./views/home.pug"); - let home = compiledFunction({art: art}); + let home = compiledFunction({ + art: art, + url: config.repository.url + }); res.set("Content-Type", "text/html"); res.send(home); diff --git a/views/home.pug b/views/home.pug index bfdb8b39904d572f7f2713a46640195ad272bfed..e2b627e4ade9a2772978c8b839da0908dcadda18 100644 --- a/views/home.pug +++ b/views/home.pug @@ -16,4 +16,4 @@ html(lang="en") div(class="centered") pre= art p This is an impementation of the 3D Portrayal Service. - p For more details visit #[a( href="https://gitlab.com/tomeof/node-3dps", target="_blank" ) https://gitlab.com/tomeof/node-3dps] + p For more details visit #[a( href=`${url}`, target="_blank" ) !{url}] \ No newline at end of file