Skip to content

Commit

Permalink
fix: respect draft key as _draft (#2738)
Browse files Browse the repository at this point in the history
  • Loading branch information
HADB authored Oct 15, 2024
1 parent aecd2e6 commit d6d10db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/transformers/path-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default defineTransformer({
return <ParsedContent> {
_path: filePath,
_dir: filePath.split('/').slice(-2)[0],
_draft: content._draft ?? isDraft(_path),
_draft: isDraft(_path) || content._draft || content.draft,
_partial: isPartial(_path),
_locale,
...content,
Expand Down

0 comments on commit d6d10db

Please sign in to comment.