mmistakes / minimal-mistakes

:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.
https://mmistakes.github.io/minimal-mistakes/
MIT License
12.42k stars 25.58k forks source link

Add posts, categories, tags, and collection layouts for easier archive page building #1582

Closed zhanghaomiao closed 6 years ago

zhanghaomiao commented 6 years ago

When I browse the Tag Archive page, I should spend a lot time to find the tags I need.

Could you add some Tags' collection at the head of Tag Archive page, like your so simple theme and also posts page and categories page?

Like this: tag_archive

sheldonhull commented 6 years ago

I found css that helped me with thus, not quite like the structured format you have, but i was really happy with the result. The only things I haven't had time to figure out was how to sort highest tags to top and increase the size of the tag based on counts.

The css is commented in here

The page is here

I cobbled this together primarily from a post by Justin Keylly

image

mmistakes commented 6 years ago

You'll have to use the sort filter on the array... maybe using the size property.

Have you asked for help on Jekyll Talk? You'll get answer quicker there than from me as this is vanilla Liquid/Jekyll. Nothing special related to the theme to do this.

mmistakes commented 6 years ago

Also if you look at my other theme So Simple you'll see how I'm sorting it by tag count.

https://github.com/mmistakes/so-simple-theme/blob/master/_layouts/tags.html

sheldonhull commented 6 years ago

Thanks, no, i haven't, i was posting more to help in case it saved @travelalone some work, or you, that said, thanks for the pointers as it was something I wanted to know for sure.

mmistakes commented 6 years ago

New layouts have been added to the master branch and will be available in the next theme release.