Skip to content

How to create new collections? What are the collection's fields? #2369

Answered by george-gca
ztjona asked this question in Q&A
Discussion options

You must be logged in to vote

We have a part for this in CUSTOMIZE.md, but I agree that we should elaborate it more.

When we say you should create a landing page for your collection, similar to _pages/projects.md, that means you should also pay attention to how the projects page is created, and make the changes accordingly.

For example, we use site.projects to access the projects files located in _projects/ inside _pages/projects.md to create the thumbnails for them. You can see that in these lines:

{% assign categorized_projects = site.projects | where: "category", category %}
{% assign sorted_projects = site.projects | sort: "importance" %}

So this is one change that you should make. Also note that when we include s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by george-gca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants