Collections like posts work as you’d expect. If you’re new to them be sure to read Jekyll’s documentation.
The theme has been built with collections in mind and you will find several examples on the demo site (portfolio, career, portflio-masonry), etc.
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 _config.yml
.
collections:
portfolio:
output: true
permalink: /:collection/:path/
These settings essentially say output index.html
files for each portfolio document in _portfolio
at _site/portfolio/<document-filename>/
.
Now make a portfolio.md file in the ‘_portfolio’ folder.
---
layout: 15_portfolio_horizontal_scroll
title: "portfolio_horizontal_scroll"
page_title: UI/UX
permalink: "/portfolio/15_portfolio_horizontal_scroll.html"
---
Note: There are multiple portfolio layouts available in this theme. You have to define the layout in your portfolio.md file.