Skip to content

Consider alternative ways to organise image files #153

@frankieroberto

Description

@frankieroberto

Currently, in order to get images working within posts using just the image filename like this:

![Alt text](image-name.png)

...you have to add the image-name.png in subfolders named after the service, year, month and post name like this:

app/images/service-name/2025/04/post-name/image-name.png

This is a bit painful to do manually, especially if you create the post and add images, and then decide to rename the post or change the month or year, requiring you to then rename the folders or move the images.

How could we make this easier?

Alternative options

Have a single images folder per service

This would mean you could add images like this:

app/images/service-name/image-name.png

One possible downside is that this folder might get quite big, increasing the chances of naming conflicts?

Have a folder per post which includes both the images and the text

This could work something like this:

app/posts/service-name/2025/04/post-name/index.md (the markdown file for post text)
app/posts/service-name/2025/04/post-name/image-name.png

Advantage is that if you rename the post or change the month or year there would only be a single folder name to update.

Possibly there might be reasons not to mix images and text up in the same folder though?

Other ideas?

Other suggestions welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions