diff --git a/_includes/assignments.html b/_includes/assignments.html index ce4f200b..91614984 100644 --- a/_includes/assignments.html +++ b/_includes/assignments.html @@ -6,6 +6,7 @@ Reading Lesson Lecture + Ref Assignment @@ -25,12 +26,14 @@ {% if language %} {% if lecturepage.title == assignment and lecturepage.element == 'lecture' and lecturepage.language == language %} {% capture lecture_link %}{{ lecturepage.url | prepend: site.baseurl }}{% endcapture %} + {% capture ref_card_url %}{{ lecturepage.url | remove: 'lectures' | remove: '/' | prepend: 'https://dcsem-solutions.weecology.org/reference-cards/' }}{% endcapture %} {% break %} {% endif %} {% else %} {% if lecturepage.title == assignment and lecturepage.element == 'lecture' %} {% capture language %}{{ lecturepage.language }}{% endcapture %} {% capture lecture_link %}{{ lecturepage.url | prepend: site.baseurl }}{% endcapture %} + {% capture ref_card_url %}{{ lecturepage.url | remove: 'lectures' | remove: '/' | prepend: 'https://dcsem-solutions.weecology.org/reference-cards/' }}{% endcapture %} {% break %} {% endif %} {% endif %} @@ -97,6 +100,14 @@ {% endif %} + {% if ref_card_url %} + + + {% else %} + + + {% endif %} + {% if assignment_link %} @@ -104,6 +115,7 @@ {% endif %} + {% endfor %}