{% comment %} Logic to traverse courses and find total number of sections {% endcomment %} {% assign total_activities = 0 %} {%- for sections in course.published_sections -%} {%- for activity in sections.activities -%} {% capture total_activities %}{{ total_activities | plus:1 }}{% endcapture %} {%- endfor -%} {%- endfor -%} {% comment %} There's no way to access a course's UID. We will obtain this by using string manipulation on the cover_path URL which has a UID. course.cover_path ~> /outline/{{id}}/cover {% endcomment %} {% assign course_path = course.cover_path | split: '/' %} {% assign current_course_id = course_path[2] %} {% assign course_date = course.created_at | date: "%s" %} {% assign number_date = course_date | times: 1%}
{{ course.short_description }}
Total modules
{{ course.published_sections.count }}