Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increasing the number of images in the gallery component #1407

Open
hnarayanan opened this issue Jan 18, 2025 · 1 comment
Open

Increasing the number of images in the gallery component #1407

hnarayanan opened this issue Jan 18, 2025 · 1 comment

Comments

@hnarayanan
Copy link

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.

@hnarayanan
Copy link
Author

I was initially looking for some sort of broader, outside the normal source code settings mechanism but couldn't find it. So I raised a straightforward PR that simply changes the number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant