diff --git a/assets_build/gulp/tasks/search_index.js b/assets_build/gulp/tasks/search_index.js index cec9dff5b19bbc2a7de76ab8d964342b816925c5..f0219dc60bbb869b12a279840ec911925758ec8d 100644 --- a/assets_build/gulp/tasks/search_index.js +++ b/assets_build/gulp/tasks/search_index.js @@ -74,6 +74,7 @@ function pageJson() { gutil.log(gutil.colors.green('Prepping search JSON')); var output = 'var tipuesearch = {"pages": ['; +//'!./dist/**/*iframe.html' return gulp.src(['./dist/**/*.html']) .pipe(through.obj(function (file, enc, cb) { gutil.log(gutil.colors.green('Processing: ',file.path)); @@ -108,6 +109,7 @@ function pageJson() { // prep file path var localFilePath = file.path.split('/dist/')[1]; + localFilePath = localFilePath.replace("-iframe.html",".html"); // index, but don't link into iframes output += '"url": "'+localFilePath+'"'; // close the json entry @@ -125,7 +127,6 @@ function pageJson() { }) ); - return output; }