humanetech-community / community-hub

Project for the Humane Tech Community website

Home Page:https://humanetech.community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recent posts in home page doesn't work properly

micheleminno opened this issue · comments

Screenshot 2019-05-19 at 11 27 29

It doesn't show the latest post and doesn't change if clicked.

Looking quickly at the documentation of the paginator, I think using the paginator is not appropriate. It creates pages and is not to be used for an embedded section like this. Probably should be changed to show just the 5 most recent site.posts and not use the paginator.

Nice change to have it display as grid. Only issue I see is that currently it only shows the last 2 blog posts for some reason.

I chose 2, 5 didn't show well in the page.

Seems like it could hold 4 entries to fill out the entire width?

in a 5 grid, 2 went on a row and 3 on another row..
but I will try.

They go in two rows, I don't know why:

Screenshot 2019-05-27 at 11 35 54

Trying with 3 limit..

No, the same, restoring to 2.

Probably this is some CSS setting. Below a blog post 4 entries are shown in a row.

Hello! I'm sorry for not claiming this issue first, but I forked the project and tweaked the CSS on a new branch, managing to get the 4 recent posts on a row! I'll make a pull request so you can have a look at the changes.

Thank you @bernardini687, it works perfectly!

This looks great on the main page, but the issue this has created is that the posts - when shown on their intended location below a blog post - now lack a gutter space between the second and third entry.

PS. The pull request for this issue was #87

Right! I'm having a look on it. Sorry!

I opened a Pull Request with the fix from my fork of the project.

Thank you! Fixed in #88

You're welcome :)