{% extends "base.html" %} {% block title %} {% set subject = section.extra.subject | default(value="math") %} {% set subject_catalog = load_data(path="data/" ~ subject ~ "-curriculum.json", format="json") %} {{ section.title }} | {{ subject_catalog.title }} | {{ config.extra.site_title }} {% endblock title %} {% block meta_description %} {% endblock meta_description %} {% block extra_head %} {% set subject = section.extra.subject %} {% set slug = section.extra.chapter_id | default(value=section.slug) %} {% set chapter_key = subject ~ "/" ~ slug %} {% set chapters_meta = load_data(path="data/_generated/chapters-meta.json", format="json") %} {% set subjects_meta = load_data(path="data/_generated/subjects-meta.json", format="json") %} {% set chapter_meta = chapters_meta.chapters | get(key=chapter_key, default=false) %} {% set subject_meta = subjects_meta.subjects[subject] | default(value=false) %} {% if subject_meta and subject_meta.hasCss %} {% endif %} {% if chapter_meta and chapter_meta.hasCss %} {% endif %} {% endblock extra_head %} {% block content %} {% set subject = section.extra.subject | default(value="math") %} {% set slug = section.extra.chapter_id | default(value=section.slug) %} {% set chapter_key = subject ~ "/" ~ slug %} {% set subject_catalog = load_data(path="data/" ~ subject ~ "-curriculum.json", format="json") %} {% set chapter_lastmod_data = load_data(path="data/_generated/chapter-lastmod.json", format="json") %} {% set chapter_lastmod = chapter_lastmod_data.byKey[chapter_key] | default(value=false) %} {% set catalog_subject_url = get_url(path="/catalog/") ~ "?subject=" ~ subject %}
{% if section.extra.strand %}

{{ section.extra.strand }}

{% endif %}

{{ section.title }}

{% if section.description %}

{{ section.description }}

{% endif %}
{{ section.content | safe }} {% if chapter_lastmod %}

Last modified:

{% endif %} {% include "partials/chapter-footer-nav.html" %}
{% endblock content %}