getFileByPermalink(permalink) {
    return this.files.filter((file) => {
      return file.permalink === permalink;
    })[0];
  }
Get file by permalink.
@method
@param {string} permalink - Permalink to search.
@returns {object} File object.