benbrignell / principles.design

An open source collection of design principles and methods.
https://principles.design
MIT License
1.28k stars 196 forks source link

Implement tags #3

Closed benbrignell closed 6 years ago

benbrignell commented 7 years ago

Better tagging and categorising for surfacing mixed resource types

benbrignell commented 7 years ago

https://talk.jekyllrb.com/t/get-all-tags-uniques-in-multiple-collection-pages-without-a-plugin/1221/3

benbrignell commented 7 years ago

This is the worst

benbrignell commented 6 years ago

I can do this but not sure about the best method. Would be great to get some assistance and discuss the best way to do this. Ultimately the /examples page you'd be able to filter the examples by tag. Kind of how http://styleguides.io does it

MattGreyDesign commented 6 years ago

@benbrignell If you want a page for each category you would have to do it manually unless you used a plugin, I tend to use https://github.com/avillafiorita/jekyll-datapage_gen which is simple and lightweight.

However, as they are all listed on one page, I suggest using a filtering system like isotope (https://isotope.metafizzy.co/sorting.html) with data attributes much like you are already doing with list.js, I think Styleguides does the same thing by the look of it.