Jekyll Courses System

Jekyll Courses System

This patch converts the 20 Debian Packaging lessons from ordinary posts into a dedicated Jekyll lessons collection and adds a reusable courses collection.

What’s included

  • _courses/debian-packaging.md: course overview and metadata.
  • _lessons/: all 20 existing Debian Packaging lessons, preserving their public permalinks.
  • _layouts/course.html: course landing page with an automatically generated curriculum.
  • _layouts/lesson.html: lesson template with a curriculum sidebar and previous/next navigation.
  • courses.html: /courses/ index.
  • _config.yml: courses and lessons collection definitions.
  • _layouts/default.html: Courses navigation link.
  • assets/css/main.scss: responsive course and lesson styling.

Install

Extract this archive into a clean copy of your blog project, or review and copy the changed files into your existing repository. This archive is a full project snapshot based on the uploaded ZIP, not a minimal patch.

Then run:

1
2
3
bundle exec jekyll clean
bundle exec jekyll build
bundle exec jekyll serve

Open /courses/ and /courses/debian-packaging/.

Adding another course

  1. Create _courses/your-course.md with layout: course, a unique course_id, and a permalink such as /courses/your-course/.
  2. Add lesson Markdown files under _lessons/.
  3. Give each lesson layout: lesson, course: your-course, an integer lesson, and a unique permalink.
  4. The course curriculum and lesson navigation are generated from collection documents automatically.

Example lesson front matter:

1
2
3
4
5
6
7
---
layout: lesson
title: "Your Lesson Title"
course: your-course
lesson: 1
permalink: /courses/your-course/01-your-lesson/
---

Image note

The uploaded project archive did not contain the referenced course image files. To avoid broken images, the course and lesson image references were omitted from this version. Add the image files and image: front matter later if desired.

Important

The existing 20 lesson URLs are preserved. However, the lessons no longer appear in the ordinary posts collection or normal post archive/feed.