updated bios content management
All checks were successful
publish / publish (push) Successful in 25s
All checks were successful
publish / publish (push) Successful in 25s
This commit is contained in:
parent
7fa6d886a0
commit
1969926aae
7 changed files with 382 additions and 625 deletions
|
@ -1,10 +1,13 @@
|
|||
<div class="profile">
|
||||
<div class="profile-image">
|
||||
<img src="{{ .Get "image" | relURL }}" alt="{{ .Get "name" }}"/>
|
||||
{{ $lang := $.Site.Language.Lang }}
|
||||
{{ $bioId := .Get "bio" }}
|
||||
{{ $entry := index (where site.Data.bios.candidates "id" $bioId) 0 }}
|
||||
<img src="{{ $entry.image | relURL }}" alt="{{ $entry.name }}"/>
|
||||
</div>
|
||||
<div class="profile-content">
|
||||
<h2>{{ .Get "name" }}</h2>
|
||||
<p><strong>Studiengang:</strong> {{ .Get "studiengang" }}</p>
|
||||
<h2>{{ $entry.name }}</h2>
|
||||
<p><strong>{{ if eq .Site.Language.Lang "de" }}Studiengang:{{ else }}Major:{{ end }}</strong> {{ $entry.studiengang }}</p>
|
||||
|
||||
{{ with .Get "bio" }}
|
||||
{{ $lang := $.Site.Language.Lang }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue