Skip to content

Provide Page Titles for each route #55

@Twitch0125

Description

@Twitch0125

With nuxt, each page file has a head section that can be used like this

export default {
     head(){
       return {
          title: 'Profile'
       }
  }
}

it also has access to the rest of the component, and can set values dynamically like this

export default {
     data(){
     return {
       community: {name:'test'}
      }
    },
     head(){
       return {
          title: this.community.name
       }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions