diff --git a/README.md b/README.md index 1cb5d31b..61f63de1 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ ## Content paths - This setup writes post files to the content repo `blog` under `content/`. +- Photo upload binaries are written to `images/{filename}` and published at `${PUBLICATION_URL}/images/{filename}`. - Current paths in `publication.postTypes` are: - `content/articles/{slug}.md` - `content/notes/{slug}.md` diff --git a/indiekit.config.mjs b/indiekit.config.mjs index 5b89544a..64c9ac7a 100644 --- a/indiekit.config.mjs +++ b/indiekit.config.mjs @@ -96,6 +96,10 @@ export default { path: "content/photos/{slug}.md", url: `${publicationBaseUrl}/photos/{slug}/`, }, + media: { + path: "images/{filename}", + url: `${publicationBaseUrl}/images/{filename}`, + }, }, reply: { name: "Antwort",