index.js
function (type, config) {
    // fail if we don't have a default for frost-page-title in the config
    if (!config.APP || !config.APP['frost-page-title'].defaultTitle) {
      return
    }

    // insert default page title
    if (type === 'page-title') {
      return config.APP['frost-page-title'].defaultTitle
    }
  }
function (type, config) {
    // fail if we don't have a default for frost-page-title in the config
    if (!config.APP || !config.APP['frost-page-title'].defaultTitle) {
      return
    }

    // insert default page title
    if (type === 'page-title') {
      return config.APP['frost-page-title'].defaultTitle
    }
  }
function ( type , config ) { // fail if we don't have a default for frost-page-title in the config if ( ! config . APP || ! config . APP [ 'frost-page-title' ] . defaultTitle ) { return } // insert default page title if ( type === 'page-title' ) { return config . APP [ 'frost-page-title' ] . defaultTitle } }
sets the default page title on build
@param {string} type - type of content in which to be included
@param {object} config - the app config object
@returns {string|undefined} - string for content
sets the default page title on build