diff --git a/assets/sass/_theme/design-system/typography.sass b/assets/sass/_theme/design-system/typography.sass index 7dd54ba73a2341454edb81e07347723a91dcd390..6bfd11cbcd97c43475d677f7319915e7ad5ea21e 100644 --- a/assets/sass/_theme/design-system/typography.sass +++ b/assets/sass/_theme/design-system/typography.sass @@ -159,7 +159,6 @@ p small, .small @include small - @mixin rich-text h1, h2, h3, h4, h5, h6, p margin-top: 2em diff --git a/assets/sass/_theme/sections/persons.sass b/assets/sass/_theme/sections/persons.sass index 97a3b7b45098f7273c03ee27c3d7749d6b68b888..cb70540d501ff52a1447f28180774f61e124d8ce 100644 --- a/assets/sass/_theme/sections/persons.sass +++ b/assets/sass/_theme/sections/persons.sass @@ -81,15 +81,14 @@ ol.persons [itemprop="name"] width: col(5) [itemprop="jobTitle"] - width: col(7) + width: col(6) margin-left: $grid-gutter @include media-breakpoint-down(md) &::after position: absolute right: 0 top: calc(#{$spacing1} + 10px) - - + .avatar @include aspect-ratio(50, 'img') background-color: $persons-avatar-background-color diff --git a/layouts/diplomas/term.html b/layouts/diplomas/term.html index 6177d2adff356116507525de4d69234db449a200..3197e8431a9ed246dcfa9e3522107eeb4cd759c8 100644 --- a/layouts/diplomas/term.html +++ b/layouts/diplomas/term.html @@ -4,7 +4,20 @@ <div class="document-content"> {{ partial "blocks/list.html" . }} <div class="container"> - {{ partial "programs/programs-list.html" .Pages }} + <ol class="programs"> + {{- range .Pages -}} + <li> + {{- $title := partial "PrepareHTML" .Title -}} + <a href="{{ .Permalink }}" class="title" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}"> + {{- $title -}} + </a> + <div class="description"> + {{/* TODO: replace with description_short */}} + {{- partial "PrepareHTML" .Params.description -}} + </div> + </li> + {{- end -}} + </ol> </div> </div> {{ end }}