From 680bff67ffefe3eabaa4348dec776296197ebdf2 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 15 Mar 2023 16:02:33 +0100 Subject: [PATCH] papers --- assets/sass/_theme/sections/papers.sass | 15 +++++++++++---- i18n/en.yml | 2 ++ i18n/fr.yml | 2 ++ layouts/papers/single.html | 2 +- layouts/partials/papers/abstract.html | 10 +++++++--- 5 files changed, 23 insertions(+), 8 deletions(-) diff --git a/assets/sass/_theme/sections/papers.sass b/assets/sass/_theme/sections/papers.sass index 5b405e3b..38d0927d 100644 --- a/assets/sass/_theme/sections/papers.sass +++ b/assets/sass/_theme/sections/papers.sass @@ -53,15 +53,21 @@ @include grid .content @include media-breakpoint-up(desktop) - grid-column: 1 / 9 + grid-column: 5 / 12 section + section margin-top: $spacing2 @include media-breakpoint-up(desktop) margin-top: $spacing4 .squared-button margin-bottom: 0 - margin-top: $spacing2 + margin-top: $spacing0 width: auto + .paper-essentials + h2 + @include meta + margin-top: $spacing2 + &:first-of-type + margin-top: 0 .paper-body h2 margin-bottom: $spacing2 @@ -79,8 +85,9 @@ text-decoration: none .document-nav @include media-breakpoint-up(desktop) - grid-column: 9 / 12 - order: 2 + grid-column: 1 / 5 + img + width: col(2, 4) dl margin: 0 dt diff --git a/i18n/en.yml b/i18n/en.yml index 4694fe94..f2b298f3 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -150,10 +150,12 @@ pages: informations: Informations posts: News papers: + abstract: Abstract dates: published: Published accepted: Accepted received: Received + download: Download persons: posts: News programs: Programs diff --git a/i18n/fr.yml b/i18n/fr.yml index df427099..a2e5e2d7 100644 --- a/i18n/fr.yml +++ b/i18n/fr.yml @@ -150,10 +150,12 @@ pages: informations: Informations posts: Actualités papers: + abstract: Abstract dates: published: Date de publication accepted: Date d'acceptation received: Date de réception + download: Téléchargement persons: posts: Actualités publiées récemment programs: Enseignements diff --git a/layouts/papers/single.html b/layouts/papers/single.html index bfd820d4..634c48f1 100644 --- a/layouts/papers/single.html +++ b/layouts/papers/single.html @@ -23,7 +23,7 @@ </div> </div> - {{ partial "blocks/list.html" . }} + {{ end }} diff --git a/layouts/partials/papers/abstract.html b/layouts/partials/papers/abstract.html index 324242e7..b5259b11 100644 --- a/layouts/partials/papers/abstract.html +++ b/layouts/partials/papers/abstract.html @@ -1,9 +1,13 @@ -<section> - <p itemprop="abstract">{{ partial "PrepareHTML" .Params.Abstract }}</p> +<section class="paper-essentials"> + {{ with .Params.Abstract }} + <h2>{{ i18n "papers.abstract" }}</h2> + <p itemprop="abstract">{{ partial "PrepareHTML" . }}</p> + {{ end }} + <h2>{{ i18n "papers.download" }}</h2> <div role="group"> {{ partial "papers/actions.html" (dict "paper" . "only_file" true - ) }} + ) }} </div> </section> -- GitLab