From c4fd43b435b98ed83756c89aca84dc23a7551906 Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Sat, 30 Apr 2016 01:23:02 +0000 Subject: pages: Get metadata generator value from pkg.version Instead of hardcoding the version number and duplicating version strings in markup, have Grunt grab the version value from package.json. Adds Gruntfile value pkgVersion. For consideration, this will cause some issues in efforts to remove Grunt from Pomf 3.x branch. Right now it's still considerably the best or simplest thing we can do. Suggested-by: Eliot Whalan Suggested-by: Austin Gillmann --- Gruntfile.js | 1 + 1 file changed, 1 insertion(+) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 14c167f..2455ff7 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,6 +11,7 @@ module.exports = function (grunt) { dest: 'dist', generateSitemap: false, generateRobotstxt: false, + pkgVersion: '<%= pkg.version %>', src: [ 'pages/index.swig', 'pages/faq.swig', -- cgit v1.2.3