function metaTitleFromFileName (filename) {
  if (filename.substr(-1) === '/') {
    filename = filename.substr(0, filename.length - 1);
  }

  return decodeURIComponent(filename);
}
function metaTitleFromFileName (filename) {
  if (filename.substr(-1) === '/') {
    filename = filename.substr(0, filename.length - 1);
  }

  return decodeURIComponent(filename);
}
function metaTitleFromFileName ( filename ) { if ( filename . substr ( - 1 ) === '/' ) { filename = filename . substr ( 0 , filename . length - 1 ) ; } return decodeURIComponent ( filename ) ; }
Produce a title from a filename for metadata.

@param {string} filename
@returns {string} title

@private
Produce a title from a filename for metadata .