gcg-website/layouts/about/list.html

69 lines
1.6 KiB
HTML

{{ define "main" }}
{{ $data := index .Site.Data .Site.Language.Lang }}
<!-- about -->
<section class="section">
<div class="container">
<div class="row">
<div class="col-12">
{{ with .Params.Image }}
<img class="img-fluid w-100 mb-4" src="{{ . | relURL }}" alt="about image">
{{ end }}
{{ .Content }}
</div>
</div>
</div>
</section>
<!-- /about -->
<!-- funfacts -->
{{ if $data.homepage.zahlen.enable }}
{{ with $data.homepage.zahlen }}
<section class="section-sm bg-primary">
<div class="container">
<div class="row">
<!-- funfacts item -->
{{ range .zahl_element }}
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
<div class="text-center">
<h2 class="count text-white" data-count="{{ .count }}">0</h2>
<h5 class="text-white">{{ .name }}</h5>
</div>
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}
{{ end }}
<!-- /funfacts -->
<!-- success story -->
{{ partial "info.html" . }}
<!-- /success story -->
<!-- teacher -->
{{ if $data.homepage.blog.enable }}
<section class="section">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="section-title">{{ i18n "our_teachers" }}</h2>
</div>
</div>
<div class="row justify-content-center">
<!-- teacher -->
{{ range first 3 (where .Site.RegularPages "Type" "teacher")}}
<div class="col-lg-4 col-sm-6 mb-5 mb-lg-0">
{{ .Render "teacher" }}
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}
<!-- /teacher -->
{{ end }}