A popular use case for collections is to build a portfolio section as part of one’s personal site. Let’s quickly walk through the steps to do that.
Step 1: Configure the portfolio collection by adding the following to
collections: portfolio: output: true permalink: /:collection/:path/
These settings essentially say output
index.html files for each portfolio document in
Just like posts and pages you’ll probably want to set some defaults for the Front Matter:
defaults: # _portfolio - scope: path: "" type: portfolio values: layout: single author_profile: false share: true
And then create portfolio content like
_portfolio/foo-bar-website.md, to end up with something like this.