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

In Items fragment, is there a way to change the amount of columns displayed in a row from 3 (standard)? #875

Open
JoshuaKissel opened this issue May 10, 2022 · 1 comment

Comments

@JoshuaKissel
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:
Question

What happened:
Items fragment displays 3 columns, then starts a new row of columns
What you expected to happen:
Item fragment to continuously shrink columns until max is reached
How to reproduce it (as minimally and precisely as possible):
Run Syna with more than 3 items in the item fragment.
Anything else we need to know?:
Just wondering if it's possible to change...
Environment:

  • Syna Theme version:
  • Hugo version:
  • Others:
@stp-ip
Copy link
Member

stp-ip commented May 18, 2022

This is not possible by config right now.
You could overwrite the items.html partial making it use more than 3 columns.
Copy the file from the syna theme into your site's 'layouts/partials/fragments/' directory as 'items.html'.
Then you can change https://github.com/okkur/syna/blob/master/layouts/partials/fragments/items.html#L17 aka the 'col-md-4' to say 'col-md-2'. It does narrow the columns, so might not be what you want specifically.

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

No branches or pull requests

2 participants