Skip to content

How to create a new collection to display a page which is similar to projects page #568

Closed Answered by wyhallenwu
Qiuyi-Hong asked this question in Q&A
Discussion options

You must be logged in to vote

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)

collections:
  news:
    defaults:
      layout: post
    output: true
    permalink: /news/:path/
  projects:
    output: true
    permalink: /projects/:path/
  albums:
    output: true
    permalink: /albums/:path/

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 file projects.md to it. But there are two places you have to modify.
ar…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@RehmatSChawla
Comment options

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
4 participants