Skip to content

Commit

Permalink
correct image path settings for astro assets support
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswiss committed Sep 5, 2023
1 parent 196daee commit 094f890
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/astro/keystatic.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export default config({
formatting: true,
dividers: true,
links: true,
images: true,
images: {
directory: 'src/assets/images/posts',
publicPath: '../../assets/images/posts/',
},
}),
},
}),
Expand Down
5 changes: 5 additions & 0 deletions templates/astro/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ ol {
margin-bottom: 1rem;
color: #1d1d1d;
}

img {
height: auto;
max-width: 100%;
}

0 comments on commit 094f890

Please sign in to comment.