okkur / syna

Highly customizable open source theme for Hugo based static websites
https://syna.okkur.org/demo/
Apache License 2.0
251 stars 133 forks source link

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

Open JoshuaKissel opened 2 years ago

JoshuaKissel commented 2 years ago

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:

stp-ip commented 2 years ago

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.