How to create a new collection to display a page which is similar to projects page #568
-
Hello, I would like to create a new page that is similar to the projects page. However, I am not sure how to edit the _config.yml file, and create a new page in the _pages folder. If anyone comes up with an idea, I appreciate it. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Struggled with this problem for a while. You can just copy and paste the project.md file in _pages for a new page. Don't create a new folder like _project. Keep all your projects in that folder and use different categories. The projects with a certain category will show up on their respective pages. |
Beta Was this translation helpful? Give feedback.
-
I have successfully achieved this goal. And I modify three files. First, you need to add a new collection(for me I create a new collection named albums) in the collections in _config.yml(around line 167)
Then, you have to make a new folder and its name should be the Finally, you need to create a file If my answer is not clear, you can check my modified repo |
Beta Was this translation helpful? Give feedback.
I have successfully achieved this goal. And I modify three files.
First, you need to add a new collection(for me I create a new collection named albums) in the collections in _config.yml(around line 167)
Then, you have to make a new folder and its name should be the
_albums
. It plays the same role as folder_projects
.Finally, you need to create a file
albums.md
in the_pages
. And copy the content of the fileprojects.md
to it. But there are two places you have to modify.ar…