welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.
https://welpo.github.io/tabi/
MIT License
112 stars 36 forks source link

Blog and Projects on homepage #291

Closed Myrdincx closed 5 months ago

Myrdincx commented 5 months ago

I'm not sure if this is already possible, but it would be nice:

Feature Request

Summary

The ability to display both your latest blog posts as well as the latest projects on the main page.

Motivation

I guess it would add some variety between your blog posts and latest projects being directly visible on the main page.

Detailed Description

I'm not quite sure how it would be implemented, but looks-wise, it would be pretty much the same as how blog posts are being displayed at the homepage right now. Only difference would be that projects don't always have a set date in their config.

Additionally, there could be some way of displaying which one is a blog post and which one is a project.

welpo commented 5 months ago

Would you picture this as intermingling blog posts and projects? A separate section for posts and projects (e.g. "Latest posts" and "Latests projects"?)

Having them all together might be a problem for the reason you mentioned:

projects don't always have a set date in their config

Myrdincx commented 5 months ago

I think a separate section would be quite nice.

welpo commented 5 months ago

How about its header?

"Latest projects" feels wrong, as they are sorted by weight, not date…

I'm leaning towards something like "Featured projects".

What are your thoughts?

Myrdincx commented 5 months ago

"Featured projects" sounds great honestly!

welpo commented 5 months ago

Done in #297!

Let me know if you encounter any issues~

Myrdincx commented 5 months ago

@welpo There is one small little issue. When using show_projects_first = true, the Latest Posts scoot to the right side, inside of being aligned in the middle as shown in the image: image

Other than that, awesome for adding this, thank you so much!

welpo commented 5 months ago

Fixed in 69094d633579a1ea4bee1fcadd77e1511d4020ca