{{ define "profilepic" }}<div class="nopic"></div>{{ end }}

{{ define "pagename" }}
<div class="course-titleblock">
  <h2 class="course-name">{{ partial "teaching/coursename.html" . }}</h2>
  <div class="course-institute">{{ .Parent.Title }}</div>
</div>
{{ end }}

{{ define "main" }}
{{ .Content }}

{{ range .Params.files }}
<h3>{{ .title }}</h3>
<ul class="teaching-doclist">
  {{ range .docs }}
  <li>
    {{ .title }}
    {{ with .pdf }}
      <span class="doclink"><a href="{{ . }}">[PDF]</a></span>
    {{ end }}
    {{ with .source }}
      <span class="doclink"><a href="{{ . }}">[SRC]</a></span>
    {{ end }}
  </li>
  {{ end }}
</ul>
{{ end }}
{{ end }}
