Metadata

Docs




Page with static metadata

Template in metadata title

Key takeaways:

  • Applies only to children segments (layout -> page on the same level won't work)
  • Won't work if children segment doesn't have `title`

In parent segment

const metadata: Metadata = {
  ...

  title: {
    template: '%s | Parent Title',
    default: 'Default Title',
  },

  ...
};

In current segment

export const metadata: Metadata = {
  title: 'Children Title',
};