From c7a248d52a986b01b34ad22edf2372188ca14b21 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Tue, 25 Apr 2023 16:48:09 +0200 Subject: [PATCH] display download title only if download is possible --- layouts/partials/papers/abstract.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/layouts/partials/papers/abstract.html b/layouts/partials/papers/abstract.html index c0a1b284..a4b7bb13 100644 --- a/layouts/partials/papers/abstract.html +++ b/layouts/partials/papers/abstract.html @@ -3,11 +3,13 @@ <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> + {{ if .Params.Pdf }} + <h2>{{ i18n "papers.download" }}</h2> + <div role="group"> + {{ partial "papers/actions.html" (dict + "paper" . + "only_file" true + ) }} + </div> + {{ end }} </section> -- GitLab