Skip to content

Commit

Permalink
feat: add default heroImage
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Oct 31, 2023
1 parent 63e901f commit 42cde39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/studio-template-blog/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default defineConfig({
slug: field.text({ optional: true }),
publishedAt: field.date({ default: 'now' }),
updatedAt: field.date({ optional: true }),
heroImage: field.text({ optional: true }),
heroImage: field.text({
default: '/blog-placeholder-1.jpg',
}),
content: field.text({ multiline: true }),
},
},
Expand Down

0 comments on commit 42cde39

Please sign in to comment.