{{ define "pagename" }}
<h2><i class="fa fa-graduation-cap" aria-hidden="true"></i>{{ .Title }}</h2>
{{ end }}

{{ define "main" }}
{{ .Content }}
{{ range sort .Pages "Title" }}
<h3 class="teaching-institute">
  {{- with .Params.link -}}<a href="{{ . }}">{{- end -}}
    {{ .Title }}
  {{- with .Params.link -}}</a>{{- end -}}
</h3>

<ul class="teaching-courses">
{{ range sort .Pages "Title" }}
<li class="course-name">
  <a href="{{ .Permalink }}">
    {{- partial "teaching/coursename.html" . -}}
  </a>
</li>
{{ end }}
</ul>

{{ end }}
{{ end }}
