From 9f5c626c8f9f3092d976ae68eb62a7a17be2f23f Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 16 Jan 2021 23:49:44 +0000 Subject: [PATCH] fix: show button links in listings irrespective of Type Hugo cannot yet understand more than one return statement. See https://discord.com/channels/722225264733716590/742863504515793149/800107285246246993 --- wowchemy/layouts/partials/functions/has_attachments.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wowchemy/layouts/partials/functions/has_attachments.html b/wowchemy/layouts/partials/functions/has_attachments.html index 4413c771..370d000a 100644 --- a/wowchemy/layouts/partials/functions/has_attachments.html +++ b/wowchemy/layouts/partials/functions/has_attachments.html @@ -15,8 +15,4 @@ {{ $cite_link = true }} {{ end }} -{{ if $cite_link | or $pdf_link | or .Params.url_preprint | or .Params.url_pdf | or .Params.url_slides | or .Params.url_video | or .Params.url_source | or .Params.url_code | or .Params.url_dataset | or .Params.url_poster | or .Params.url_project | or .Params.doi | or .Params.links | or .Params.projects | or .Params.slides }} - {{ return true }} -{{ else }} - {{ return false }} -{{ end }} +{{ return ($cite_link | or $pdf_link | or .Params.url_preprint | or .Params.url_pdf | or .Params.url_slides | or .Params.url_video | or .Params.url_source | or .Params.url_code | or .Params.url_dataset | or .Params.url_poster | or .Params.url_project | or .Params.doi | or .Params.links | or .Params.projects | or .Params.slides) }}