Skip to content

Increasing the number of images in the gallery component #1407

@hnarayanan

Description

@hnarayanan

I run Ghost on my self-hosted personal blog, primarily using it to share photos with family.

In doing so, I frequently encounter the 9-photo limit in the Koenig gallery component. While I can sometimes work around this by using more than one gallery, I generally prefer not to, as it arbitrarily breaks up the flow of the story.

I’ve looked into the source code and identified where this limit appears to be set.

Would you be open to a patch that adds a setting (or similar) to significantly increase this limit (e.g., to 81)? Do you see any potential drawbacks to doing so? I assume this limit was originally chosen with bandwidth or performance considerations in mind. Additionally, I suspect the limit might need to remain a multiple of 3 (or similar) due to how the gallery displays 3 images per row.

Please let me know if you think this is a particularly bad idea. Separately, I’d prefer to avoid maintaining a custom build of Koenig and having to manually update it alongside standard Ghost updates.

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