improved member bio handling
All checks were successful
publish / publish (push) Successful in 27s

This commit is contained in:
Jannik Menzel 2025-06-21 19:52:29 +02:00
parent fdd1faa904
commit f9f7be56b2
40 changed files with 635 additions and 399 deletions

View file

@ -5,6 +5,18 @@
<div class="profile-content">
<h2>{{ .Get "name" }}</h2>
<p><strong>Studiengang:</strong> {{ .Get "studiengang" }}</p>
{{ with .Get "bio" }}
{{ $bios := site.Data.bios }}
{{ $lang := $.Site.Language.Lang }}
{{ $key := . }}
{{ with index $bios $key }}
{{ with index . $lang }}
<p>{{ . | markdownify }}</p>
{{ end }}
{{ end }}
{{ else }}
{{ .Inner | markdownify }}
{{ end }}
</div>
</div>
{{ .Inner | markdownify }}
</div>