From edaa3ca2a31eeaca8bab7fd0defaa77b5ff54ac7 Mon Sep 17 00:00:00 2001 From: alexisben <alex@noesya.coop> Date: Mon, 12 Dec 2022 18:56:38 +0100 Subject: [PATCH] fix persons list grid --- assets/sass/_theme/design-system/typography.sass | 1 - assets/sass/_theme/sections/persons.sass | 5 ++--- layouts/diplomas/term.html | 15 ++++++++++++++- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/assets/sass/_theme/design-system/typography.sass b/assets/sass/_theme/design-system/typography.sass index 7dd54ba7..6bfd11cb 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 97a3b7b4..cb70540d 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 6177d2ad..3197e843 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 }} -- GitLab