You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I using Dynamic Routes. To uniformly manage and generate pages with a consistent structure, which involves changing the headertitle#2516, the suggestion is also to use .vitepress/config.js to use transformPageData
// .vitepress/config.js{// ...transformPageData: (pageData,{ siteConfig })=>{if(page-foo){// change header, title and resolve page data}elseif(page-bar){// ...}}
Describe the solution you'd like
I think if transformPageData would be in Dynamic Routes configure [pkg].paths.js. Avoid me adding too many logic in .vitepress/config.js, and just managing it in only one place. clear and good management
Very needed feature. I couldn't figure out how to populate just the 'title:' frontmatter for these dynamic pages without this option. @Zhengqbbb thanks for the tip with use of the transformPageData!
Is your feature request related to a problem? Please describe.
ref: #883 (comment) #2516
When I using Dynamic Routes. To uniformly manage and generate pages with a consistent structure, which involves changing the
header
title
#2516, the suggestion is also to use.vitepress/config.js
to usetransformPageData
Describe the solution you'd like
I think if
transformPageData
would be in Dynamic Routes configure[pkg].paths.js
. Avoid me adding too many logic in.vitepress/config.js
, and just managing it in only one place. clear and good managementDescribe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: