Skip to content

Docs: Add "how to add images" to the Astro starter #617

Open
@jasikpark

Description

@jasikpark

https://github.com/Thinkmill/keystatic/blob/main/docs/src/content/pages/installation-astro.mdoc

^ It'd be great to include "how to add images and ensure they're resolved" to the astro docs, since there seems to be some awkwardness with how the paths are generated:

with src/content/posts/first-post.mdoc in the starter, uploading an image from the ui adds src/content/posts/first-post/content/image.jpeg and links ![](image.jpeg) in src/content/posts/first-post.mdoc, which Astro ends up not resolving.

Maybe worth changing the config / reccomending changing the config for a blog w/ images or improving the path generation code?

Changing keystatic.config.ts to path: "src/content/posts/*/" doesn't seem to help, since then the image is still referenced as ![](image.jpeg) when it's in the ./content/ directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions