{{ tut_desc | excerpt_for_card(tut_title) | excerpt(150) }}
{% end %} Start tutorial →{% extends "base.html" %}
{#
================================================================================
Tutorial List Template (Kida-Native)
================================================================================
Tutorial section index with difficulty levels, time estimates, and grid layout.
KIDA FEATURES USED:
- {% let %} for template-scoped variables
- Optional chaining (?.) for null-safe access
- Null coalescing (??) for smart defaults
- Pipeline operator (|>) for filter chains
- {% def %} for reusable card components
USAGE:
Set `type: tutorial` in section _index.md
================================================================================
#}
{% from 'partials/navigation-components.html' import breadcrumbs %}
{# =============================================================================
TUTORIAL CARD COMPONENT
============================================================================= #}
{% def tutorial_card(tutorial) %}
{% let tut_meta = tutorial?.metadata ?? {} %}
{% let tut_title = tutorial?.title ?? 'Tutorial' %}
{% let tut_href = tutorial?.href ?? tutorial?._path ?? '#' %}
{% let tut_icon = tut_meta?.icon ?? 'book' %}
{% let tut_desc = tut_meta?.description ?? tutorial?.excerpt ?? '' %}
{% let tut_difficulty = tut_meta?.difficulty ?? '' %}
{% let tut_time = tut_meta?.time ?? tut_meta?.duration ?? '' %}
{% let tut_prereqs = tut_meta?.prerequisites ?? [] %}
{{ tut_desc | excerpt_for_card(tut_title) | excerpt(150) }} {{ sub_desc | excerpt_for_card(sub_title) | excerpt(150) }}
{{ section_desc }}
{% else %}Step-by-step guides to help you learn and master the topics.
{% end %}No tutorials available yet.