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

30 lines
668 B
HTML
Raw Normal View History

2021-11-22 17:29:05 +01:00
{{ 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 }}