in gulpfile.js [899:924]
function htmlAdditions (cb) {
const datasets = getDatasets();
// Build up list of unique tags
const dates = getUniqueDates(datasets);
var filteredDatasets = {};
reduce(dates, function(acc, key) {
// Filter out datasets without a matching tag
acc[key] = datasets.filter((d) => {
return d.RegistryEntryAdded == key;
});
return acc;
}, filteredDatasets);
// HBS templating
var templateData = {
datasets: filteredDatasets,
isHome: false
};
return gulp.src('./src/changelogindex.hbs')
.pipe(hb({data: templateData, helpers: hbsHelpers, partials: ['./src/partials/*'], handlebars: handlebars}))
.pipe(rename(`change-log/index.html`))
.pipe(gulp.dest('./dist/'));
};