From 2bf5e0d80c08920a66c80351b19e10e544cd0502 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 15 Mar 2023 12:40:31 +0100 Subject: [PATCH] fix --- assets/sass/_theme/sections/papers.sass | 4 ++++ assets/sass/_theme/sections/volumes.sass | 10 +--------- layouts/partials/papers/paper.html | 16 +++++++++------- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/assets/sass/_theme/sections/papers.sass b/assets/sass/_theme/sections/papers.sass index 63356e58..5b405e3b 100644 --- a/assets/sass/_theme/sections/papers.sass +++ b/assets/sass/_theme/sections/papers.sass @@ -16,6 +16,10 @@ h3 a:hover color: $color-accent + .paper-kind + @include meta + text-transform: uppercase + margin-right: $spacing1 .paper-volume @include meta text-transform: lowercase diff --git a/assets/sass/_theme/sections/volumes.sass b/assets/sass/_theme/sections/volumes.sass index 80b7be73..7aac22fb 100644 --- a/assets/sass/_theme/sections/volumes.sass +++ b/assets/sass/_theme/sections/volumes.sass @@ -45,18 +45,10 @@ margin-left: $spacing0 @include media-breakpoint-up(desktop) > div:first-of-type - display: flex - flex-wrap: wrap - justify-content: space-between - h3 - flex: 1 - > span - order: 3 - width: 100% .paper-volume padding-left: $spacing1 .paper-actions gap: $grid-gutter - margin-top: $spacing1 + margin-top: $spacing0 a, button width: unset \ No newline at end of file diff --git a/layouts/partials/papers/paper.html b/layouts/partials/papers/paper.html index b3ba77b9..5e5ea297 100644 --- a/layouts/partials/papers/paper.html +++ b/layouts/partials/papers/paper.html @@ -9,7 +9,10 @@ <span itemprop="name">{{ partial "PrepareHTML" .Title }}</span> </a> </h3> - <div class="paper-authors"> + <p> + {{ with .Params.paper_kind }} + <span class="paper-kind">{{ . }}</span> + {{ end }} {{- range $index, $authors := .Params.Researchers -}} {{- $author := site.GetPage (printf "/persons/%s" .) -}} {{ if $author }} @@ -21,18 +24,17 @@ </span> {{- end -}} {{- end -}} - </div> - <p class="paper-volume"> - <span>{{ .Params.paper_kind }}</span> - {{ if not $inside_volume }} + </p> + {{ if not $inside_volume }} + <p class="paper-volume"> {{ range .Params.Volumes }} {{ $volume := site.GetPage (printf "/volumes/%s" .) }} {{ if $volume }} {{ i18n "commons.in" }} “<a href="{{ $volume.Permalink }}">{{ $volume.Title }}</a>†{{ end }} {{ end }} - {{ end }} - </p> + </p> + {{ end }} </div> {{ partial "papers/actions.html" (dict "paper" . ) }} </article> -- GitLab