gcg-website/themes/educenter-hugo/layouts/teacher/list.html
2020-07-09 17:43:11 +02:00

35 lines
1.0 KiB
HTML

{{ define "main" }}
<!-- teachers -->
<section class="section">
<div class="container">
<div class="row">
<div class="col-12">
<!-- teacher category list -->
<ul class="list-inline text-center filter-controls mb-5">
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">{{ i18n "all" }}</li>
{{ $categories := slice }}
{{ range .Data.Pages }}
{{ $categories = $categories | append .Params.Course }}
{{ end }}
{{ range ( $categories | uniq ) }}
<li class="list-inline-item m-3 text-uppercase" data-filter="{{ . | urlize }}">{{ . | humanize }}</li>
{{ end }}
</ul>
</div>
</div>
<!-- teacher list -->
<div class="row filtr-container">
<!-- teacher -->
{{ range .Data.Pages }}
<div data-category="{{ .Params.Course | urlize }}" class="col-lg-4 col-sm-6 filtr-item">
{{ .Render "teacher" }}
</div>
{{ end }}
</div>
</div>
</section>
<!-- /teachers -->
{{ end }}