diff --git a/assets/sass/_theme/sections/persons.sass b/assets/sass/_theme/sections/persons.sass index 4b0bca9ea52c990bd0e1cbeca8e50b8fc0a40f97..d58fce2dd0dcef8811f3e6054fcefb341f5d7317 100644 --- a/assets/sass/_theme/sections/persons.sass +++ b/assets/sass/_theme/sections/persons.sass @@ -211,11 +211,13 @@ ol.persons--list .informations @include grid margin-bottom: $spacing-4 - > div:first-of-type - grid-column: 1 / 9 .roles - grid-column: 9 / 13 - text-align: right + grid-column: 1 / -1 + .biography + grid-column: 1 / 9 + + .roles + grid-column: 9 / 13 + text-align: right .lead + div margin-top: $spacing-4 .contacts-details ul diff --git a/layouts/persons/single.html b/layouts/persons/single.html index a7e24cb19d79641af29453ed213cd1ab7ee503a3..b00e04dcecf99d648eab7fbc797ddb15a1c04dea 100644 --- a/layouts/persons/single.html +++ b/layouts/persons/single.html @@ -42,26 +42,30 @@ {{ end }} <div class="informations"> - <div> - {{ partial "persons/summary.html" (dict - "context" . - ) }} - {{ if (partial "GetTextFromHTML" .Content) }} - <div class="rich-text"> - {{ partial "PrepareHTML" .Content }} - </div> - {{ end }} - </div> - {{ range $programsForAdministrator }} - {{ $program := . }} + {{ if .Content }} + <div class="biography"> + {{ partial "persons/summary.html" (dict + "context" . + ) }} + {{ if (partial "GetTextFromHTML" .Content) }} + <div class="rich-text"> + {{ partial "PrepareHTML" .Content }} + </div> + {{ end }} + </div> + {{ end }} + {{ if $programsForAdministrator }} <div class="roles"> - {{ range .Params.roles }} - {{ $role := .title }} - {{ if in .persons $slug }} - <p> - {{ safeHTML $role }}<br> - <a href="{{ $program.Permalink }}" class="link">{{ safeHTML $program.Title }}</a> - </p> + {{ range $programsForAdministrator }} + {{ $program := . }} + {{ range .Params.roles }} + {{ $role := .title }} + {{ if in .persons $slug }} + <p> + {{ safeHTML $role }}<br> + <a href="{{ $program.Permalink }}" class="link">{{ safeHTML $program.Title }}</a> + </p> + {{ end }} {{ end }} {{ end }} </div>