Organize articles into two (or n) columns #351
Replies: 1 comment 3 replies
-
@kevinlinxc I had the same issue. I am trying to use I did this by creating But the primary reason I chose Congo was to access Tailwind and learn Hugo at the same time, so this fix feels counterintuitive and not ideal. I just couldn't figure out how to do it any other way. So I'm not sure what I'll do long-term! Would love to hear what the creators recommend 💕 |
Beta Was this translation helpful? Give feedback.
-
My articles are listed like normal right now, except that I added some pictures:
I think it would look better if I moved this list into two columns instead, and centered all the text.
I tried adding the tailwind css grid keywords to create these columns. The reference is here: https://tailwindcss.com/docs/grid-template-rows.
To do so, I copied list.html to my layouts/_default and surrounded this chunk in a div:
https://github.com/jpanther/congo/blob/dev/layouts/_default/list.html#L29-L39.
Like so:
I also tried a few permutations, and overall, nothing seems to happen.
My hunch is that I have to "tell" tailwind CSS that I want to use grids in this project.
Another problem (I have minimal web dev design exp) could be that the text fills up the whole width, so there's not enough room to have two items in a column.
Could someone take me step by step through making this addition?
Beta Was this translation helpful? Give feedback.
All reactions