Unit 04 · lesson

Define a Project Collection

Now migrate the portfolio projects into a real content type.

Configure

collections:
  projects:
    output: true

Restart the development server after the configuration change.

Create a project document

_projects/line-follower.md
---
title: Line Follower
summary: A small robot that follows a high-contrast track.
technologies:
  - Arduino
  - C++
featured: true
---

## Problem

Describe the goal.

## Build

Describe the system.

## Evidence

Show what worked, failed, or changed.

Inspect the collection

Jekyll exposes a collection through site data such as:

site.projects

Build a temporary diagnostic list:

{% for project in site.projects %}
  <p>{{ project.title }}{{ project.url }}</p>
{% endfor %}

Build and inspect.

Output is a decision

Collections do not need to output individual public pages in every use case.

For portfolio projects, output: true is usually useful because each project should have a case-study URL.

Understand what the flag changes rather than copying it.

Checkpoint

Create two project documents and prove they appear through site.projects.