diff --git a/gulp/lib/compile-home.js b/gulp/lib/compile-home.js index e826d2f..862e875 100644 --- a/gulp/lib/compile-home.js +++ b/gulp/lib/compile-home.js @@ -93,6 +93,7 @@ // update the resource paths nextPosts.forEach(function(post) { post.description = resolvePaths.resolve(post.meta.body, '../..'); + post.url = '../../' + post.meta.slug; }); // create custom template data for this paginated page diff --git a/gulp/lib/compile-tags.js b/gulp/lib/compile-tags.js index 7ffa20c..8e79bfa 100644 --- a/gulp/lib/compile-tags.js +++ b/gulp/lib/compile-tags.js @@ -108,6 +108,7 @@ // update the resource paths nextPosts.forEach(function(post) { post.description = resolvePaths.resolve(post.meta.body, '../../..'); + post.url = '../../../' + post.meta.slug; }); // create custom template data for this paginated page diff --git a/gulp/tests/compile-dates.spec.js b/gulp/tests/compile-dates.spec.js index 0e40dd9..bcafe0f 100644 --- a/gulp/tests/compile-dates.spec.js +++ b/gulp/tests/compile-dates.spec.js @@ -5,7 +5,7 @@ removeDir = require('../lib/remove-dir'), expect = require('chai').expect, mockery = require('mockery'), - Promise = require('promise'), + Promise = require('bluebird'), sinon = require('sinon'), fs = require('fs'); diff --git a/gulp/tests/compile-home.spec.js b/gulp/tests/compile-home.spec.js index 4d12d56..e24c669 100644 --- a/gulp/tests/compile-home.spec.js +++ b/gulp/tests/compile-home.spec.js @@ -5,7 +5,6 @@ removeDir = require('../lib/remove-dir'), expect = require('chai').expect, mockery = require('mockery'), - Promise = require('promise'), sinon = require('sinon'), Promise = require('bluebird'), fs = require('fs'); diff --git a/gulp/tests/compile-pages.spec.js b/gulp/tests/compile-pages.spec.js index 6c1afb7..e9bed45 100644 --- a/gulp/tests/compile-pages.spec.js +++ b/gulp/tests/compile-pages.spec.js @@ -5,7 +5,7 @@ removeDir = require('../lib/remove-dir'), expect = require('chai').expect, mockery = require('mockery'), - Promise = require('promise'), + Promise = require('bluebird'), sinon = require('sinon'), fs = require('fs'); diff --git a/gulp/tests/compile-tags.spec.js b/gulp/tests/compile-tags.spec.js index a64f859..40fd952 100644 --- a/gulp/tests/compile-tags.spec.js +++ b/gulp/tests/compile-tags.spec.js @@ -5,7 +5,7 @@ removeDir = require('../lib/remove-dir'), expect = require('chai').expect, mockery = require('mockery'), - Promise = require('promise'), + Promise = require('bluebird'), sinon = require('sinon'), fs = require('fs');