Skip to content

how set different title description. at fontmatter. when using CMS as backend??? #4432

@hccap

Description

@hccap

Is your feature request related to a problem? Please describe.

export default {
async paths() {

 const data = await (await fetch('https://my-cms-api', {
   headers: {
   }
 })).json()

 return data.map(entry => {
   return {
     params: { id: entry.id, /* title, authors, date 等 */ },
     content: entry.content,

????
}
})
}
}

Describe the solution you'd like

export default {
async paths() {

 const data = await (await fetch('https://my-cms-api', {
   headers: {
   }
 })).json()

 return data.map(entry => {
   return {
     params: { id: entry.id, /* title, authors, date 等 */ },
     content: entry.content,

????
}
})
}
}

Describe alternatives you've considered

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions