Skip to content

Commit

Permalink
fix: site default frontmatter excerpt_type invalid (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
qtqz authored Feb 6, 2025
1 parent 200affb commit aaf62fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/valaxy/node/plugins/vueRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export async function createRouterPlugin(valaxyApp: ValaxyNode) {
*/
route.addToMeta({
frontmatter: routerFM,
excerpt: mdFm.excerpt || (excerpt ? getExcerptByType(excerpt, mdFm.excerpt_type, mdIt) : ''),
excerpt: mdFm.excerpt || (excerpt ? getExcerptByType(excerpt, mdFm.excerpt_type || defaultFrontmatter.excerpt_type, mdIt) : ''),
})

// set layout
Expand Down

1 comment on commit aaf62fb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://67a498b0fa727c009921f7c9--valaxy.netlify.app

Please sign in to comment.