diff --git a/assets/sass/_theme/sections/diplomas.sass b/assets/sass/_theme/sections/diplomas.sass index 05c8bdc870d0a407459ecf19f9d22a4a4ca6944f..66621a8ebaef706266a3b85dfa2751ead4269a02 100644 --- a/assets/sass/_theme/sections/diplomas.sass +++ b/assets/sass/_theme/sections/diplomas.sass @@ -154,4 +154,15 @@ ul.diplomas ol.programs li @include grid(2, desktop) - align-items: start \ No newline at end of file + align-items: start + a + @include media-breakpoint-between(sm, desktop) + display: flex + margin-right: $spacing0 + &::after + bottom: unset + + p + margin-top: $spacing0 + @include media-breakpoint-down(sm) + &::after + transform: translateY(50%) \ No newline at end of file diff --git a/layouts/diplomas/term.html b/layouts/diplomas/term.html index 6e518d4f47056245898355502807edfae5657258..6751e22329e10752f14ec8227696d508c915aea5 100644 --- a/layouts/diplomas/term.html +++ b/layouts/diplomas/term.html @@ -8,13 +8,16 @@ {{- range .Pages -}} <li> {{- $title := partial "PrepareHTML" .Title -}} + {{/* TODO: check title class relevance */}} <a href="{{ .Permalink }}" class="title" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}"> {{- $title -}} </a> - <p class="description"> - {{/* TODO: replace with description_short */}} - {{- partial "PrepareHTML" .Params.presentation -}} - </p> + {{ if .Params.presentation }} + <p class="description"> + {{/* TODO: replace with description_short */}} + {{- partial "PrepareHTML" .Params.presentation -}} + </p> + {{ end }} </li> {{- end -}} </ol>