Skip to content

Instantly share code, notes, and snippets.

@siddhartha-gadgil
Created January 22, 2018 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siddhartha-gadgil/c96879285dd6ffc398f2ecfba5932a9e to your computer and use it in GitHub Desktop.
Save siddhartha-gadgil/c96879285dd6ffc398f2ecfba5932a9e to your computer and use it in GitHub Desktop.
---
title: Course Catalogue
---
<h2>Course Catalogue</h2>
{% assign sorted = (site.all-courses | sort: 'code') %}
{% for course in sorted %}
{% capture lnk %}{{ site.baseurl }}/all-courses/{{ course.code | downcase | replace: ' ', '' }}.html{% endcapture %}
<h4> <a href={{ lnk }}>{{ course.code }}: {{ course.title }} </a>
</h4>
{% if course.prereqs %}
<h4> Pre-requisites : </h4>
<ol>
{% for pre in course.prereqs %}
<li>{{ course.prereqs }}</li>
{% endfor %}
</ol>
{% endif %}
{{ course.content }}
{% if course.books %}
<h4> Suggested books : </h4>
<ol>
{% for book in course.books %}
<li> {{ book.author}}, <em>{{ book.title }}</em>, {{ book. publ }}.</li>
{% endfor %}
</ol>
{% endif %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment