Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multicategories #145

Open
epigraphe opened this issue Feb 15, 2016 · 1 comment
Open

Multicategories #145

epigraphe opened this issue Feb 15, 2016 · 1 comment

Comments

@epigraphe
Copy link

Hello.
I need to make one project could be in three or four categories.
I downloaded the template Assemblage.
On the first page it displays all the projects from all categories. Thus, if I create three of the same projects in three different categories, too, there are three, then he should be the one on the main page.

How to make that initially display only a single copy of the project, but when sorting by categories, he would also be displayed.

It should be something like this:
http://isotope.metafizzy.co/

@zachkrall
Copy link

one way I've accomplished this with Stacey is by defining a variable within a project's .yml file that is a string of classes for isotope.

title: project title

categories: photos videos texts

content:+++
page info
+++

then when you print out each child for your projects, you include the categories as isotope classes
<a class="element-item {{ page.categories }}">{{ page.title }}</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants