From 83917cea101897dedb2d52112e243f9051d71840 Mon Sep 17 00:00:00 2001 From: Ryan Weal Date: Thu, 30 Mar 2017 10:11:18 -0400 Subject: [PATCH] Give redirects the correct path to the new URL --- lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 3622547..72c66dc 100644 --- a/lib/index.js +++ b/lib/index.js @@ -11,8 +11,8 @@ function plugin (options) { if (options.redirect) { // Redirect to permalink location const redirectBuffer = new Buffer(` - - + + `) const orginalBuffer = newFile.contents newFile.contents = Buffer.concat([redirectBuffer, orginalBuffer]) @@ -37,4 +37,4 @@ function plugin (options) { } } -module.exports = plugin; \ No newline at end of file +module.exports = plugin;