2020-06-27 10:05:59 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
|
|
|
|
<!-- teachers -->
|
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2020-08-11 14:10:42 +02:00
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="btn-group portfolio-filter btn-group-toggle justify-content-center d-flex flex-wrap"
|
|
|
|
data-toggle="buttons">
|
|
|
|
<label class="btn btn-primary-outline active">
|
|
|
|
<input type="radio" name="shuffle-filter" value="all" checked="checked" />{{ i18n "all"}}
|
|
|
|
</label>
|
|
|
|
{{ $categories := slice }}
|
|
|
|
{{ range .Data.Pages }}
|
|
|
|
{{ range .Params.Courses }}
|
|
|
|
{{ $categories = $categories | append . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ range ( $categories | uniq ) }}
|
|
|
|
<label class="btn btn-primary-outline">
|
|
|
|
<input type="radio" name="shuffle-filter" value="{{ . | urlize }}" />{{ . }}
|
|
|
|
</label>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
2020-06-27 10:05:59 +02:00
|
|
|
<!-- teacher list -->
|
2020-08-11 14:10:42 +02:00
|
|
|
<div class="row shuffle-wrapper">
|
2020-06-27 10:05:59 +02:00
|
|
|
<!-- teacher -->
|
|
|
|
{{ range .Data.Pages }}
|
2020-08-11 14:10:42 +02:00
|
|
|
<div class="col-lg-4 col-sm-6 shuffle-item"
|
|
|
|
data-groups="[{{range $index, $element:= .Params.Courses }}{{if ne $index 0}},{{end}}"{{. | urlize}}"{{ end }}]">
|
2020-06-27 10:05:59 +02:00
|
|
|
{{ .Render "teacher" }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<!-- /teachers -->
|
|
|
|
|
2020-07-09 17:43:11 +02:00
|
|
|
{{ end }}
|