diff --git a/assets/sass/_theme/sections/papers.sass b/assets/sass/_theme/sections/papers.sass index 5b405e3b9c3302c199b5b2df707d7d4948caf7a0..38d0927df81be61d1d7b24b6fc116e0848fae7ef 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 4694fe94265eb08e14b7d20407cf1fafef23b567..f2b298f34238880752baaf38bc7a5126997fec85 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 df427099105017d361cb687ac4fe4568d53196b8..a2e5e2d74fb0eab09f3ec407c3e674472833fd98 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 bfd820d4e9f328d8e7aeddb37976f90eae0c7894..634c48f1d9c6c71e54ee0a07b380275df8468fda 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 324242e7f087ca41559b33c77153e51aaa43d345..b5259b11433fff82d58d9911c5c00d7f6ab67db0 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>