From c3d43a36370721d2a35aa837cf66fa9282b74e05 Mon Sep 17 00:00:00 2001 From: khawkins98 <khawkins98@gmail.com> Date: Fri, 6 Apr 2018 13:09:12 +0100 Subject: [PATCH] Exclude iframe samples from template index, but don't link into iframes --- assets_build/gulp/tasks/search_index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets_build/gulp/tasks/search_index.js b/assets_build/gulp/tasks/search_index.js index cec9dff..f0219dc 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; } -- GitLab