function generateLatestWidget(files, options) {
  gutil.log(' ', 'Generating latest updates widget...');
  // Create a new array instead of mutating the existing array
  const articles = [];
  const len = options.articlesToShow || files.length;
  for (let i = 0; i < len; i++) {
    articles.push(files[i]);
  }
  const context = {articles};
  const template = path.join(global.WF.src.templates, 'latest_articles.html');
  const outputFile = path.join(options.outputPath, '_shared',
      'latest_articles.html');
  renderTemplate(template, context, outputFile);
}
Generate the latest updates widget

@param {Array} files List of files
@param {Object} options Options used to generate the widget