Nuxt.js Dynamic vue-meta titleTemplate in Pages Component

March 10, 2020
export default {
  head() {
    const baseTitle = 'Dynamic Site Title'
    return {
      title: 'Page Title',
      titleTemplate(title) {
        return `${title} - ${baseTitle}`
      }
    }
  }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.