You can use the last_watched_lessons list in conjunction with all_lessons object to create a “continue watching” or “recommended content” section.

Syntax

{% last_watched_lessons[lesson_id] %}

Scope

It’s accessible globally, in any template, section or block.

Example

{% for lesson in last_watched_lessons %}
  {% assign lesson_data = all_lessons[lesson] %}
  - {{ lesson.name }}
{% endfor %}
- Introduction
- Advanced Course Intro