Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Adds related course as a grid using the template
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhowbrook committed Jan 4, 2024
1 parent a3e22f5 commit 54f98bf
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ <h1 class="title-block__heading title-block__heading--course">

{% include_block page.body %}

{% for related_course_page in page.related_courses %}
{{ related_course_page.sessions }} {% if related_course_page.sessions and related_course_page.cost %} | {% endif %} {{ related_course_page.cost }}
{{ related_course_page.title }}
{{ related_course_page.intro|richtext }}
<a href="{% pageurl related_course_page %}">View details</a>
{% endfor %}
{% if page.related_courses %}
<div class="contain-me">
{% include "patterns/molecules/course-grid/course-grid.html" with cards=page.related_courses %}
</div>
{% endif %}

{% endblock %}

0 comments on commit 54f98bf

Please sign in to comment.