diff --git a/_src/_data/settings.js b/_src/_data/settings.js index 5f3837f..aae18e8 100644 --- a/_src/_data/settings.js +++ b/_src/_data/settings.js @@ -1,3 +1,5 @@ +var pjson = require('../../package.json'); + function getYear() { return new Date().getFullYear(); } @@ -6,7 +8,7 @@ function getYear() { -function getStaticsVersion() { +function getStaticsVersioning() { const version = new Date() .toISOString() .replace(/[^A-SU-Y0-9]/g, ''); @@ -21,6 +23,7 @@ module.exports = { lang: 'en', mode: process.env.MODE, siteName: 'Asteroids', - version: getStaticsVersion(), + version: getStaticsVersioning(), year: getYear(), + projectVersion: pjson.version, }; diff --git a/_src/_templates/components/footer.njk b/_src/_templates/components/footer.njk new file mode 100644 index 0000000..eaa955a --- /dev/null +++ b/_src/_templates/components/footer.njk @@ -0,0 +1,11 @@ + diff --git a/_src/_templates/layouts/main.njk b/_src/_templates/layouts/sample-layout.njk similarity index 52% rename from _src/_templates/layouts/main.njk rename to _src/_templates/layouts/sample-layout.njk index caccc96..43ce75e 100644 --- a/_src/_templates/layouts/main.njk +++ b/_src/_templates/layouts/sample-layout.njk @@ -8,31 +8,14 @@