tobast.fr-hugo/layouts/teaching/list.html

27 lines
628 B
HTML
Raw Normal View History

2021-11-22 17:29:05 +01:00
{{ 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>
{{- with .Params.role -}}<div class="course-role">{{ . }}</div>{{- end -}}
2021-11-22 17:29:05 +01:00
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}