73 lines
2.5 KiB
HTML
Raw Normal View History

2020-06-27 10:05:59 +02:00
{{ define "main" }}
<!-- teacher details -->
<section class="section">
<div class="container">
<div class="row">
<div class="col-md-5 mb-5">
<img class="img-fluid w-100" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
</div>
<div class="col-md-6 mb-5">
<h3>{{ .Title }}</h3>
2020-08-11 14:10:42 +02:00
{{ range .Params.Courses }}
<h6 class="text-color">{{.}}</h6>
{{ end }}
2020-06-27 10:05:59 +02:00
<p class="mb-5">{{ .Params.Bio | markdownify }}</p>
<div class="row">
<div class="col-md-6 mb-5 mb-md-0">
<h4 class="mb-4">{{ i18n "contact_info" | upper}}:</h4>
<ul class="list-unstyled">
{{ range .Params.Contact }}
<li class="mb-3"><a class="text-color" href="{{ .link | safeURL }}"><i class="{{ .icon }} mr-2"></i>{{ .name }}</a></li>
{{ end }}
</ul>
</div>
2020-07-14 16:18:06 +02:00
{{ if not .Params.clubs }}
2020-06-27 10:05:59 +02:00
<div class="col-md-6">
<h4 class="mb-4">{{ i18n "interest" | upper }}</h4>
<ul class="list-unstyled">
{{ range .Params.Interest }}
<li class="mb-3">{{ . | title }}</li>
{{ end }}
</ul>
</div>
2020-07-14 16:18:06 +02:00
{{ end }}
2020-06-27 10:05:59 +02:00
</div>
</div>
<div class="col-12 content">
{{ .Content }}
</div>
</div>
2020-07-14 16:18:06 +02:00
{{ if .Params.Clubs }}
2020-07-09 17:43:11 +02:00
<div class="row">
2020-07-14 16:18:06 +02:00
<div class="col-lg-7 mb-20 mb-lg-0">
2020-07-17 20:01:45 +02:00
<h3>Kontakt</h3>
<form action="{{ .Params.Formspree_link | safeURL }}" method="POST">
2020-07-09 17:43:11 +02:00
<input type="text" class="form-control mb-3" id="name" name="name" placeholder="Name">
<input type="email" class="form-control mb-3" id="mail" name="mail" placeholder="E-Mail Adresse">
<input type="text" class="form-control mb-3" id="subject" name="subject" placeholder="Betreff">
<textarea name="message" id="message" class="form-control mb-3" placeholder="Nachricht"></textarea>
<button type="submit" value="send" class="btn btn-primary">{{ i18n "send" }}</button>
</form>
</div>
</div>
2020-06-27 10:05:59 +02:00
<div class="row">
<div class="col-12">
2020-07-09 17:43:11 +02:00
<h4 class="mb-4">{{ i18n "clubs" | upper}}</h4>
2020-06-27 10:05:59 +02:00
</div>
<!-- course item -->
{{ range where .Site.RegularPages "Params.teacher" .Title }}
<div class="col-lg-4 col-sm-6 mb-5">
{{ .Render "ganztagsangebote"}}
</div>
{{ end }}
</div>
2020-07-09 17:43:11 +02:00
{{ end }}
2020-06-27 10:05:59 +02:00
</div>
</section>
<!-- /teacher details -->
{{ end }}